ADC Home > Reference Library > Technical Q&As > Legacy Documents > Carbon >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

How to define a plst resource in a .r file

Q: What's the syntax for defining a plst resource in a .r file? Is there a plist resource template?

A: There is no plst resource template but you can use the PropertyList Editor under Mac OS X or any text editor to create your XML .plist file. You can then add this file to your project by reading it in with the following line in any .r file:

read 'plst' (0) "MyFile.plist"

If the .r and .plist files are not in the same folder make sure that you use a full or relative path.

Further Reference:

Technical Note TN2013, "The 'plst' Resource".

[May 09 2001]

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.