Re: NSFileManager and Resource Forks
Re: NSFileManager and Resource Forks
- Subject: Re: NSFileManager and Resource Forks
- From: email@hidden
- Date: Wed, 27 Oct 2010 16:39:42 -0600
Thanks Greg. Leaks filled!
-koko
On Oct 27, 2010, at 4:35 PM, Greg Guerin wrote:
koko wrote:
although I have implemented a different solution, just to note the
data fork (the file) does exist, it is nspath in the first line.
I don't see nspath being used to create a data-fork file in any code
you posted. It may be in the code you didn't post, or if I've
missed it, please point it out.
I also realize I wasn't clear. After the file exists, i.e. after
the file has been created WITHOUT a namedfork pathname, it's wrong
to use createFile on the resource fork. You can, however, open the
namedfork for writing. I have done this using C stdio (FILE*) and
it worked fine. Obviously, that's not one of the NSFileManager
functions.
Finally, the most recent code you posted is leaking the malloc'ed
buffer holding the resource-fork's bytes.
-- 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