• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Correct way to change NSPersistentDocument subclass MOC type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Crash in datasource method when closing document
  • Next by Date: NSTextView without word wrap
  • Previous by thread: Re: Fastest way to do screen captures on OSX ?
  • Next by thread: NSTextView without word wrap
  • Index(es):
    • Date
    • Thread