IPhone development: info. plist (2)

Source: Internet
Author: User

Table A-2 CFBundleDocumentTypes dictionary keywords

Keyword type description CFBundleTypeExtensionsArray this keyword contains a set of file extensions mapped to this type. To open a document with any extension, you can use a single asterisk (*). This keyword is required. CFBundleTypeIconFileString this keyword specifies the icon file name used when the system displays this type of document. The extension of this icon file name is optional. If there is no extension, the system will specify one based on the platform (for example,. icons in Mac OS 9 ). CFBundleTypeNameString this keyword contains the abstract name of this document type. By including this keyword in an appropriate InforPlist. strings file, you can localize it. CFBundleTypeOSTypesArray this keyword contains a set of four-letter long type code mapped to this type. To open all types of documents, you can set it to ***. This keyword is required. CFBundleTypeRoleString this keyword defines the roles of applications related to the document type. The value can be Editer, Viewer, Printer, Shell, or None. For a detailed description of these values, see "document configuration ". This keyword is required. NSDocumentClassString this keyword describes the NSDocument subclass used to instantiate a document. It is only used by Cocoa applications. NSExportableAsArray this keyword describes a set of document types that can be output. It is only used by Cocoa applications.
 

CFBundleExecutable
CFBundleExecutable identifies the name of the bundle executable main file. An application is the executable file of the application. A loadable bundle is a binary file that can be dynamically loaded by a bundle. For a framework, it is a shared library. Project Builder automatically adds this keyword to the Info. plist file of the appropriate Project.

For the framework, the executable file name must have the same name as the framework name, considering the startup efficiency. The executable file name should not contain extensions that can be used on multiple platforms.

Note:

You must include a valid CFBundleExecutable keyword in the bundle Info. plist file. Even if you rename the application or bundle directory, Mac OS X can use this keyword to locate executable files and shared libraries.

CFBundleGetInfoHTML
The CFBundleGetInfoHTML keyword contains the HTML string that will be displayed in the bundle information window. If you want to be more expressive in the information window, you can use this key-value pair to replace the plain text CFBundleGetInfoString. You can also localize the string by adding it to the InfoPlist. strings file in the appropriate. lproj directory.

If both CFBundleGetInfoString and CFBundleGetInfoHTML exist, the system selects CFBundleGetInfoHTML.

CFBundleGetInfoString
The CFBundleGetInfoString keyword contains a plain text string that will be displayed in the message window of the bundle (the string here is the long string in Mac OS 9 ). The format of this keyword should follow the long string in Mac OS 9, for example, "2.2.1 ,? Great Software, Inc, 1999 ". You can also localize the string by adding it to the InfoPlist. strings file in the appropriate. lproj directory.

If CFBundleGetInfoHTML exists, this keyword is not selected.

CFBundleHelpBookFolder
The CFBundleHelpBookFolder keyword contains the folder Name of the bundle help file. The help is usually localized into a specified language, so the folder pointed to by this keyword should be the folder in the. lproj directory of the selected language.

CFBundleHelpBookName
CFBundleHelpBookName specifies the help homepage of your application. The Help Page name specified by this keyword can be different from the HTML file name. The Help Page name is specified in the CONTENT attribute of the META tag of the Help file.

CFBundleIconFile
The CFBundleIconFile keyword specifies the file containing the bundle icon. The file name you provided does not need to contain the ". icns" extension. Finder searches for the icon file in the "Resource" folder of the bundle.

If your bundle uses a custom icon, you must specify this attribute. If this parameter is not specified, Finder (and other applications) uses the default icon to display your bundle.

CFBundleIdentifier
The CFBundleIdentifier keyword specifies a unique string of the bundle. This identifier is named like a Java package, for example, com. apple. myapp. This bundle identifier can be located at runtime. The preset system uses this string to uniquely identify each application.

CFBundleInfoDictionaryVersion
The CFBundleInfoDictionaryVersion keyword specifies the current version number of the attribute list structure. This keyword allows you to support future versions in Info. plist format. When you create a bundle, Project Builder automatically generates this keyword.

CFBundleName
CFBundleName specifies the short name of the bundle. The short name should be less than 16 characters and is suitable for display in menus and "about. This keyword can be localized by adding it to the InfoPlist. strings file in the appropriate. lproj sub-folder. If you localized this keyword, you should also provide a localized version of The CFBundleDisplayName keyword.

CFBundlePackageType
The CFBundlePackageType keyword specifies the bundle type, similar to the file type code of Mac OS 9. The value of this keyword contains a code with four letters. The application code is 'appl', the Framework Code is 'fmwk', and the code that can be loaded is 'bnd '. If you need it, you can also select other special types of code for the load bundle.

Cfbundleappsversionstring
The cfbundle‑versionstring keyword specifies the version number of the bundle. It generally contains the major and minor version numbers of the bundle. The format of this string is usually "n. n. n" (n indicates a number ). The first number is the major version number of the bundle, and the other two are minor version numbers. The value of this keyword is displayed in the about dialog box of the Cocoa application.

This keyword is different from CFBundleVersion. It specifies a special creation number. The cfbundlepolicversionstring value describes a version that is more formal and does not change with each creation.

CFBundleSignature
The CFBundleSignature keyword specifies the bundle creator, similar to the file creator code in Mac OS 9. The value of this keyword contains four-letter code to determine each bundle.

CFBundleURLTypes
The CFBundleURLTypes keyword contains a set of dictionaries describing the URL protocols supported by the application. Its purpose is similar to that of CFBundleDocumentTypes, But it describes the URL protocol rather than the document type. Each dictionary entry corresponds to a separate URL protocol. The table A-3 lists the keywords used in each dictionary entry.

Table A-3 CFBundleURLTypes dictionary keywords

Keyword type description CFBundleTypeRoleString this keyword defines the roles of URL-related applications (that is, the relationship between the application and a certain document type ). The value can be Editer, Viewer, Printer, Shell, or None. For a detailed description of these values, see "document configuration ". This keyword is required. CFBundleURLIconFileString this keyword contains the icon file name (excluding the extension) string used for this URL type. CFBundleURLNameString this keyword contains the abstract name string of this URL type. To ensure uniqueness, we recommend that you use the naming rules for Java packages. This name will also appear in the InfoPlist. strings file as a keyword to provide the readable version of this type of name. CFBundleURLSchemesArray this keyword contains a set of URL protocols that can be processed by this type. For example, http or ftp. CFBundleVersion
The CFBundleVersion keyword specifies a string to identify the creation number. The value of this keyword usually changes with each creation and is displayed in the expansion number in the Cocoa "about" dialog box.

To specify the version information of a release bundle, you can use the cfbundleappsversionstring keyword. See "cfbundle‑versionstring ".

 

 

From cloud huaikong-abel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.