• 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: CoreData, and design of document model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CoreData, and design of document model (From: David Mirabito <email@hidden>)

  • Prev by Date: getting a nsurl file size
  • Next by Date: Re: getting a nsurl file size
  • Previous by thread: CoreData, and design of document model
  • Next by thread: Recently Opened in Doc
  • Index(es):
    • Date
    • Thread