On Nov 8, 2008, at 1:17 PM, Stephen J. Butler wrote:
On Sat, Nov 8, 2008 at 3:01 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote:I notice you're crashing on thread 10. Do you instantiate a newNSFileManager instance with alloc/init per thread? Using + [NSFileManager defaultManager] from a background thread will cause problems (and note thatNSFileManager alloc/init doesn't work properly on 10.4 and earlier).Where did you read that NSFileManager is not thread safe? It's part of the Foundation framework, which should be thread safe unless documented otherwise (and I can't find any documentation to that effect).
Did you look at the thread safety summary? http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/chapter_950_section_2.html#//apple_ref/doc/uid/10000057i-CH12-122647-BBCCEGFF
Also, it's never proper to use alloc/init on NSFileManager, no matter what the OS X version.
Not correct. See the Foundation release notes for 10.5: http://developer.apple.com/releasenotes/Cocoa/Foundation.html#NSFileManager -- Adam
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
