Re: [[NSFileManager alloc] init] considered thread-safe
Re: [[NSFileManager alloc] init] considered thread-safe
- Subject: Re: [[NSFileManager alloc] init] considered thread-safe
- From: Jens Alfke <email@hidden>
- Date: Wed, 5 May 2010 11:29:17 -0700
On May 5, 2010, at 8:50 AM, Michael Ash wrote:
>> Delegates are the only reason the doc says anything other than "go nuts".
>> This is what both Jens and I were trying to say.
>
> Is this true for all OS X versions, for 10.6+, or some other combination?
For all, I think, although the issue doesn’t apply prior to 10.5 because there wasn’t a delegate. Aside from the delegate, NSFileManager is really just a stateless procedural API wrapped up in an object instance, so it has the same thread safety as the underlying filesystem calls, i.e. “go nuts”.
—Jens_______________________________________________
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