• 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: Strange Managed Context Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Managed Context Error


  • Subject: Re: Strange Managed Context Error
  • From: Colin Cornaby <email@hidden>
  • Date: Sun, 21 Aug 2005 09:51:38 -0700


On Aug 20, 2005, at 8:02 PM, mmalcolm crawford wrote:

How have you configured the context in the NSPersistentDocument? Put another way, how does the persistent document know to use you NSManagedObjectContext subclass and...

Of course.

The NSPersistentDocument's init:

- (id)init
{
self = [super init];
if (self != nil) {
//Initialize the data for the document. A MyManagedObjectContext is a NSManagedObjectContext subclass
//so we can directly interface to CoreData. We can also set the MyManagedObjectContext as this persistent
//document's object context
MyManagedObjectContext *documentContext = [[MyManagedObjectContext alloc] init];
[self setManagedObjectContext: documentContext];
}
return self;
}


... given this init method, how have you set the coordinator for the document?

mmalc


Covered above.

---------------------------
Colin Cornaby
ProToys - White Magic Labs - http://whitemagiclabs.com
Macintosh Specialist - University of Portland - htttp://up.edu


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Strange Managed Context Error
      • From: mmalcolm crawford <email@hidden>
    • Re: Strange Managed Context Error
      • From: Colin Cornaby <email@hidden>
References: 
 >Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)
 >Re: Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)
 >Re: Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Highlighting programmatically
  • Next by Date: Re: Strange Managed Context Error
  • Previous by thread: Re: Strange Managed Context Error
  • Next by thread: Re: Strange Managed Context Error
  • Index(es):
    • Date
    • Thread