Re: Strange Managed Context Error
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