Re: XCode Resource Files
Re: XCode Resource Files
- Subject: Re: XCode Resource Files
- From: "Madhavi Kankanala" <email@hidden>
- Date: Wed, 3 May 2006 16:10:43 -0400
I couldn't find any Rez prefix file in the old CodeWarrior project. So I am not sure what macros I need to replace with STRINGTABLE in my prefix file. I am a kind of new to Resource files. Actually they defined numbers to these string variables in
WP_Str.h file and actual text is assigned in this resource file. If possible can you send me a sample resource file and rez prefix file. I appreciate your Help.
On 5/3/06, Chris Espinosa <email@hidden> wrote:
On May 3, 2006, at 9:04 AM, Madhavi Kankanala wrote:
I am having problems linking to Resource Files with STRINGTABLES. It worked fine on CodeWarrior and when we imported to the Xcode, The following build error occurs in resource file when I run the project.
### Developer/Tools/Rez - Expected 'DATA', 'ENUM', 'INCLUDE' , 'READ', 'RESOURCE' or 'TYPE', but got identifier (STRINGTABLE).
The resource file looks like
#include "WP_Str.h"
STRINGTABLE DISCARDABLE
BEGIN
str_pDlgWindowTitle "Print Preview"
str_pDlgPrintChapter "Print This Chapter"
str_pDlgPrintPage "Print This Page"
str_pDlgPrintAllChaps "Print All Chapters"
How do we use these 'STRINGTABLE' in resource files in XCode? All other resource files are linking fine except those contain this STRINGTABLE identifier. Actually this code was written by other programmers and now we are importing those old projects to XCode. My question is "Is StringTable a keyword in resource files or whether it should be defined in another file?"
Also #defines in the Prefix files are not accessible in resource files. How do we access them in the resource files?
STRINGTABLE, DISCARDABLE, and BEGIN are not Rez keywords, so I expect that they are convenience macros that are defined in your Rez prefix file. Try setting the "Rez Prefix File" build setting to the path to that file.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden