Re: minimum one entity instance on initial launch
Re: minimum one entity instance on initial launch
- Subject: Re: minimum one entity instance on initial launch
- From: mmalc crawford <email@hidden>
- Date: Wed, 8 Aug 2007 13:42:21 -0700
On Aug 8, 2007, at 12:36 PM, Jim Thomason wrote:
3) If it's document based, you can do something to create the object
if the user is opening a new file. Is there a clean method for this? I
don't recall offhand. At a minimum, you could check for [self fileURL]
== nil in windowControllerDidLoadNib, I think, and add an object
there. Is there some easier delegate based "New Document Created"
method or note or something? I guess you could subclass
NSDocumentController.
Please don't guess when there's documentation that describes exactly
how to do this:
<http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/index.html
>
mmalc
_______________________________________________
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