app resources (repost)
app resources (repost)
- Subject: app resources (repost)
- From: Steve Mills <email@hidden>
- Date: Mon, 8 Nov 2004 11:54:37 -0600
OK, so I have all my non-localizable resources in <appname>.rsrc, a
data fork resource file. According to the documentation (which I can't
find again), that file is opened for me when the app loads. Should that
file be the same file that CurResFile returns if called at the top of
main before anything else happens? If so, should GetResource then be
able to load a resource from the non-localizable file? If not, do I
explicitly need to do something like:
if(mainBundle != nil) {
url = CFBundleCopyResourceURL(mainBundle, CFSTR("Dogface Macho
Debug"), CFSTR("rsrc"), nil);
if(url) {
if(CFURLGetFSRef(url, &fsr)) {
rn = FSOpenResFile(&fsr, fsRdPerm);
}
CFRelease(url);
}
}
Then keep that file open and remember the refnum, which will then be
used to set the cur res file before making any GetResource calls?
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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