Re: Open Resource File with Cocoa Path
Re: Open Resource File with Cocoa Path
- Subject: Re: Open Resource File with Cocoa Path
- From: Charles Srstka <email@hidden>
- Date: Thu, 11 Apr 2002 11:35:31 -0500
I was told some time ago that it's better to use ..namedfork/rsrc than
/rsrc...
On Thursday, April 11, 2002, at 09:29 AM, Adam Atlas wrote:
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.
_______________________________________________
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.