Re: FileWrapper & iCloud
Re: FileWrapper & iCloud
- Subject: Re: FileWrapper & iCloud
- From: Mike Abdullah <email@hidden>
- Date: Sat, 01 Dec 2012 22:05:55 +0000
On 1 Dec 2012, at 20:21, Dave Fernandes wrote:
>> NSPersistentDocument always creates a MOC of type NSMainQueueConcurrencyType, even if it is created on a background thread. So as long as things don't go wrong during document opening, everything will be the same as a document opened on the main thread forever after.
>
> Whoops! I meant to say NSPersistentDocument always creates a MOC of type **NSConfinementConcurrencyType** -- the legacy type that assumes you know what you are doing and will manage access accordingly.
But the Core Data team have said for years that MOCs created on the main thread get some special treatment. Of course they’ve never given us any specifics. The docs state very clearly that MOCs (using the non-private queue types) should be created on the same thread/queue that they’ll be used on.
_______________________________________________
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