Re: Resource forks
Re: Resource forks
- Subject: Re: Resource forks
- From: Nicolas Zinovieff <email@hidden>
- Date: Sun, 25 Apr 2004 15:25:15 +0200
Thanks a lot. I'll try that first thing monday morning!
On 25 Apr 2004, at 15:08, Ricky Sharp wrote:
It isn't a pain. The only thing you need to watch out for is that
Xcode carbon projects include a CSResourcesFileMapped key in the
Info.plist file set to a value of Yes. I had a situation in my
application where I needed to decrypt certain resources. That didn't
work anymore since the Handle returned by Get1Resource and friends was
memory mapped to the .rsrc file on disk and provided read-only access.
The immediate workaround was to set that key's value to No. A better
workaround is to take advantage of the better performance with the
memory mapped resources and just operate on copies of those Handles
should you need read/write access.
Other than that, having the resources in the data fork is completely
transparent. The runtime loads that data-fork resource file
automatically for you and you can continue to use ResMgr APIs as if
those resources were in the resource-fork of your executable.
--
Nicolas
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.