• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [[NSFileManager alloc] init] considered thread-safe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [[NSFileManager alloc] init] considered thread-safe
      • From: Jens Alfke <email@hidden>
References: 
 >[[NSFileManager alloc] init] considered thread-safe (From: Quincey Morris <email@hidden>)
 >Re: [[NSFileManager alloc] init] considered thread-safe (From: Jens Alfke <email@hidden>)
 >Re: [[NSFileManager alloc] init] considered thread-safe (From: Quincey Morris <email@hidden>)
 >Re: [[NSFileManager alloc] init] considered thread-safe (From: Ken Ferry <email@hidden>)
 >Re: [[NSFileManager alloc] init] considered thread-safe (From: Quincey Morris <email@hidden>)
 >Re: [[NSFileManager alloc] init] considered thread-safe (From: Ken Ferry <email@hidden>)

  • Prev by Date: Re: Authenticate NSFileManager Operations
  • Next by Date: Re: Authenticate NSFileManager Operations
  • Previous by thread: Re: [[NSFileManager alloc] init] considered thread-safe
  • Next by thread: Re: [[NSFileManager alloc] init] considered thread-safe
  • Index(es):
    • Date
    • Thread