On Oct 11, 2013, at 04:03 , Mikael Hakman <mhak...@dkab.net> wrote:

> 
> On Oct 11, 2013, at 12:37 PM, Rick Mann <rm...@latencyzero.com> wrote:
> 
> In ManagedObjectContext there is method – initWithConcurrencyType:. Perhaps 
> you can use it.

The problem is not the creation of the MOC, it's how to create it in the 
overridden -[NSPersistentDocument managedObjectContext]. If you do, you get an 
error that it can't get at the persistent store coordinator. It doesn't work to 
fist let the superclass create a MOC (by calling super.managedObjectContext) 
and then grabbing that PSC.

It does work, however, to do exactly that in -init.



-- 
Rick



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to