Re: Open Resource File with Cocoa Path
Re: Open Resource File with Cocoa Path
- Subject: Re: Open Resource File with Cocoa Path
- From: Adam Atlas <email@hidden>
- Date: Thu, 11 Apr 2002 10:29:55 -0400
Let's say you have a file with a resource fork and a data fork. Mac OS X
sees it (let's call it myFile) as:
myFile: The data fork.
myFile/rsrc: (yes, access it as a directory) The resource fork.
myFile/data: The data fork again.
I believe you can just do:
NSData *myResourceFile=[[NSData alloc]
initWithContentsOfFile:@"/SomePath/myResourceFile/rsrc"];
It's actually possible to do this in the Terminal:
% cat /SomePath/myResourceFile/rsrc
The shell only sees it as one file, the data fork, so the autocompletion
found in most shells can be confusing for this.
--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.