Re: CoreData, and design of document model
Re: CoreData, and design of document model
- Subject: Re: CoreData, and design of document model
- From: Jerry Krinock <email@hidden>
- Date: Sat, 28 Jan 2012 22:20:19 -0800
On 2012 Jan 27, at 01:07, David Mirabito wrote:
> Right now am working with the notion that when the document is created I add one System managedObject if one doesnt exist, and then never add another in the document's lifetime. Right now in MyDocument's -didLoadNib whilst experimenting but maybe later I'll find a better delegate method for that.
I suppose -didLoadNib would work, but in Apple's DepartmentAndEmployees sample code, DepartmentAndEmployees, they insert their document's 'Department' singular object in -[NSDocument initWithType:error:]. That is where I do it and would seem to be more robust. I've never had any trouble with it.
_______________________________________________
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