Re: Correct way to change NSPersistentDocument subclass MOC type?
Re: Correct way to change NSPersistentDocument subclass MOC type?
- Subject: Re: Correct way to change NSPersistentDocument subclass MOC type?
- From: Mikael Hakman <email@hidden>
- Date: Fri, 11 Oct 2013 13:03:23 +0200
On Oct 11, 2013, at 12:37 PM, Rick Mann <email@hidden> wrote:
In ManagedObjectContext there is method – initWithConcurrencyType:. Perhaps you can use it.
/Mikael
> I want to change my NSPersistentDocument subclass to use a different concurrency type. But I can't find a way to override -managedObjectContext that works.
>
> The only discussions online I could find are from 5 years ago.
>
> It does seem to work if I set the MOC in one of the -initXXX methods, but that seems brittle.
>
> --
> Rick
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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