• 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: minimum one entity instance on initial launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >minimum one entity instance on initial launch (From: Gonzalo Castro <email@hidden>)
 >Re: minimum one entity instance on initial launch (From: "Jim Thomason" <email@hidden>)

  • Prev by Date: Re: Problem with NSTreeController, CoreData and bindings
  • Next by Date: Error trying to add NSImage to NSImageCell
  • Previous by thread: Re: minimum one entity instance on initial launch
  • Next by thread: Re: minimum one entity instance on initial launch
  • Index(es):
    • Date
    • Thread