Re: NSFileManager and Resource Forks
Re: NSFileManager and Resource Forks
- Subject: Re: NSFileManager and Resource Forks
- From: Greg Guerin <email@hidden>
- Date: Wed, 27 Oct 2010 14:35:05 -0700
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