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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net

This email sent to k...@highrolls.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to