Re: NSFileManager thread safety?
Re: NSFileManager thread safety?
- Subject: Re: NSFileManager thread safety?
- From: Joar Wingfors <email@hidden>
- Date: Mon, 16 Nov 2009 21:15:04 -0800
On 16 nov 2009, at 04.07, Gregory Weston wrote:
> Given Dave Keck's correct comment that threading shouldn't even come up in the situation you describe, I should point out that according to the docs the result of sending init to an NSFileManager object in 10.5 is undefined. If you're testing there, it's entirely legit for tempFileManager to be invalid after the first line executes.
I think that the docs are wrong here. It's OK to alloc+init new copies of NSFileManager on Mac OS X 10.5 and later. I've filed a bug report for fixing up the documentation.
j o a r
_______________________________________________
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