创建文件默认名字和公司的修改

来源:互联网 发布:java创建时间属性 编辑:程序博客网 时间:2024/04/30 03:57

在创建工程文件时,有默认的注释可修改,如下

//  Created by XXX on 11-11-18.

//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.

XXX的修改需要Mac应用地址簿里创建一个记录,输入需要修改的名字即可。

公司的名字的修改因为xcode中没有有关公司名称的占位符,所以我们必须通过terminal使用命令来设置,在terminal中执行如下命令(打开terminal的快捷键:command+shift+U):

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "需要修改的公司名";}'


另外更改xcode4新建模板里的Mycompanyname参看:

http://www.cocoachina.com/bbs/read.php?tid=55218


PS:Xcode4.0之后版本可的IB里直接更改,如图:

参考:in the navigation pane (far left side), select the project (top item).

Expand the Utilities pane (at window top-right, far right button in the 3-button "View" group).

In the "Project Document" section is the "Organization" text field (File Inspection view, second section from top)





原创粉丝点击