NSFileManager - thread safety issues?
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