• 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: awakeFromInsert is not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awakeFromInsert is not called


  • Subject: Re: awakeFromInsert is not called
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 14 Nov 2005 21:13:52 +0100

Am 14.11.2005 um 20:36 schrieb Kubernan from 10191 Technologies:

So, what i want is a list of static values such as "Once a week", "Once a day", "Once a month". Each is an instance of the entity "groupUpdateOption" If i well understand
i don't need to use awakeFromInsert. I just have to create 3 entity instances.
The entity "groupUpdateOption" has relationship with other entity, so my question is where is the best place into my code
for creating these three default instances ?



For what purpose are these? If you just need a choice between these things and no others, it'd be much more efficient to just use an int and define constants, i.e.:


#define ONCE_A_WEEK 1
#define ONCE_A_DAY 2

etc. and then assign their values to that int of the objects instead of having object associations.

Or, if these objects are defaults that can be changed or replaced, or there are other options apart from these, I'd suggest just manually creating these objects once (using your GUI or so), then saving the CoreData store to a file. Then, when you need to create a new document, just read its objects from that saved file (which you drop into your app's bundle or so). This has the advantage that it's easier to maintain your template document than it is to maintain the code that generates an equivalent document. And you might even want to expand on this and add template support...

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >awakeFromInsert is not called (From: Kubernan from 10191 Technologies <email@hidden>)
 >Re: awakeFromInsert is not called (From: Chris Hanson <email@hidden>)
 >Re: awakeFromInsert is not called (From: Kubernan from 10191 Technologies <email@hidden>)

  • Prev by Date: Re: Are these the same and correct?
  • Next by Date: Is there a self?
  • Previous by thread: Re: awakeFromInsert is not called
  • Next by thread: Toolbar with menu
  • Index(es):
    • Date
    • Thread