Re: NSFileManager and Resource Forks
Re: NSFileManager and Resource Forks
- Subject: Re: NSFileManager and Resource Forks
- From: email@hidden
- Date: Wed, 27 Oct 2010 15:49:33 -0600
although I have implemented a different solution, just to note the
data fork (the file) does exist, it is nspath in the first line.
-koko
On Oct 27, 2010, at 3:40 PM, Greg Guerin wrote:
koko wrote:
NSString *outPath = [nspath stringByAppendingString:@"/..namedfork/
rsrc"];
ok = [fm createFileAtPath:outPath contents:data attributes:nil];
This won't work. You must first create the file (i.e. create the
data fork). Only after the file exists can you open and write to
its resource fork using the "namedfork" notation. This is true even
if the data fork is intended to be empty, of length zero.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden