Re: [[NSFileManager alloc] init] considered thread-safe
Re: [[NSFileManager alloc] init] considered thread-safe
- Subject: Re: [[NSFileManager alloc] init] considered thread-safe
- From: Michael Ash <email@hidden>
- Date: Wed, 5 May 2010 11:50:27 -0400
On Wed, May 5, 2010 at 2:37 AM, Ken Ferry <email@hidden> wrote:
> On Tue, May 4, 2010 at 11:27 PM, Quincey Morris <email@hidden
>> wrote:
>
>> I'm not concerned with the issue of delegates. My question is whether a
>> single (delegate-less) instance of NSFileManager can be used simultaneously
>> from multiple threads, or whether each thread needs a separate instance to
>> prevent conflicts but multiple instances don't conflict with each other
>> though they share the filesystem. Both possibilities are a kind of thread
>> safety.
>>
>
> You can use a single instance from multiple threads, generally the shared
> one.
>
> 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?
Mike
_______________________________________________
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