Re: Crash in NSFileManager
Re: Crash in NSFileManager
- Subject: Re: Crash in NSFileManager
- From: "Stephen J. Butler" <email@hidden>
- Date: Sat, 8 Nov 2008 15:17:08 -0600
On Sat, Nov 8, 2008 at 3:01 PM, Adam R. Maxwell <email@hidden> wrote:
> I notice you're crashing on thread 10. Do you instantiate a new
> NSFileManager instance with alloc/init per thread? Using +[NSFileManager
> defaultManager] from a background thread will cause problems (and note that
> NSFileManager 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).
Also, it's never proper to use alloc/init on NSFileManager, no matter
what the OS X version.
_______________________________________________
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