Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Move Settings From the .plc File to an Info.plist File

Any packaged Mac OS X software requires an information property list file named Info.plist. CodeWarrior projects that create similar types of software use a .plc file to supply this information. You can read about differences between these approaches in “The Information Property List and .plc Files.”

When you import a project into Xcode, the importer does extract property list setting information from the CodeWarrior project, but you should check the information and make any necessary additions or modifications. If your CodeWarrior project doesn’t have a .plc file, you’ll have to supply all the necessary information.

In Xcode, you supply or modify this information by opening a target editor and making changes in the Properties pane. Figure 4-1 shows the Properties pane after importing a project based on CodeWarrior project stationery.

You can also move property list entries from your CodeWarrior project to your Xcode project by the following steps:

  1. In CodeWarrior, verify that the Property List Compiler Output pop-up on the Property List pane of the target settings window is set to “Output as file.”

  2. Build your CodeWarrior project, so that it creates an Info.plist file from the .plc file. The property list file is part of the application bundle, so it is not typically visible in the Finder.

  3. Open the Info.plist file as text. You can do this by Control-clicking the application file and choosing Show Package Contents, navigating to the file within the Contents folder, and double-clicking it (which should open the file in a CodeWarrior editor window).

  4. In the project window of your Xcode project, open the Resources group within the project group in the Groups & Files list. You should see an Info.plist file.

  5. Double-click the Info.plist file to open it in an Xcode editor window.

  6. You can cut and paste key-value entries from the CodeWarrior property list to the Xcode property list. Of course, you’ll have to observe the XML format.


Figure 4-1  The Properties pane in a target editor

The Properties pane in an inspector window



< Previous PageNext Page > Hide TOC


Last updated: 2006-10-26




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice