How does Xcode know who the project was “created by”?

前端 未结 6 796
长发绾君心
长发绾君心 2020-12-24 06:59

Whenever a new file is added to the project, Xcode adds the following lines of comments on top.

//  Created by {my name here} on 8/4/11.
//  Copyright 2011 _         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 07:58

    The template comes from i.e. /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Cocoa Touch/Objective-C class.xctemplate/NSObject/FILEBASENAME.h

    You can harcode some custom info(like code warranty or other legal text). Play with it to achieve desired results, but this is the hard and clumsy way

    On the easy way useful hint would be that you can change Organization property on the Utilities pane(right side) in Xcode4, when editing the project file(liek build settings). It will be applied to all files created in this project.

提交回复
热议问题