• 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
NSFileManager - thread safety issues?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileManager - thread safety issues?


  • Subject: NSFileManager - thread safety issues?
  • From: Jim Correia <email@hidden>
  • Date: Tue, 21 Mar 2006 11:37:32 -0500

The documentation says that NSFileManager is not thread safe.

http://devworld.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html#//apple_ref/doc/uid/20000736- BCICDHAF

Is this accurate as of 10.4.x?

The documentation goes on to say "Some of these items may be made thread-safe in the future but for now you should use a lock or the @synchronized directive if there is a potential for access by multiple threads."

This sounds like incorrect and bad advice to me. For example, using NSFileManager inside a @synchronized block doesn't guarantee that all code that I didn't write (system or third party frameworks) will do the same, so it hasn't magically added thread safety to that class.

Am I off in the weeds, or is the documentation simply incorrect here?

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSFileManager - thread safety issues?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSTask and authentication...I have to clarify my original question
  • Next by Date: Re: Installer
  • Previous by thread: Re: Useless side remark...
  • Next by thread: Re: NSFileManager - thread safety issues?
  • Index(es):
    • Date
    • Thread