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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to