Additional Configuration Tips
This chapter describes some miscellaneous techniques for configuring your application.
The PkgInfo File
PkgInfo file is an alternate way to specify the type and creator codes of your application or bundle. This file is not required, but can improve performance for code that accesses this information. Regardless of whether you provide this file, you should always include type and creator information in your information property list file using the
CFBundleSignature keys, respectively.
The contents of the
PkgInfo file are the 4-byte package type followed by the 4-byte signature of your application. Thus, for the TextEdit application, whose type is
'APPL' and whose signature is
'ttxt', the file would contain the ASCII string “APPLttxt”.
Using Launch Arguments
If you have a Cocoa application, you can override many user defaults settings by specifying them on the command line. In addition, Cocoa recognizes a few additional arguments for opening and printing files. Table 1 lists some of the more commonly used command-line arguments for Cocoa applications.
© 2003, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-10-19)