• 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: Binding to to-one relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to to-one relationship


  • Subject: Re: Binding to to-one relationship
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 7 Jan 2006 10:39:20 -0800


On Jan 7, 2006, at 6:29 AM, Matt Neuburg wrote:

On Fri, 6 Jan 2006 12:04:34 -0800, mmalcolm crawford <email@hidden>
said:

On Jan 6, 2006, at 10:11 AM, Matt Neuburg wrote:
Not quite sure what "it" is in that sentence, but it sounds like you want to override awakeFromInsert (this is, in effect, the "designated initializer").

No, it's not. The designated initializer is initWithEntity:insertIntoManagedObjectContext:.

awakeFromInsert and awakeFromFetch have special semantics -- see
<http://developer.apple.com/documentation/Cocoa/Conceptual/
ModelObjects/Articles/moInitialization.html>

Oh, stop it. That page says: "awakeFromInsert ... that you can override to
perform initialization". That is what the OP needed to know (he wrote me
later to thank me and tell me so), so what's your beef? Besides, I said "in
effect", precisely to cover the fact that this isn't *really* the *class's*
designated initializer. m.


"Designated initializer" has a very specific meaning:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaObjects/Articles/ObjectCreation.html#//apple_ref/doc/uid/ 20002154-1006903>

This is semantically different from the use and effect of the "awakeFrom..." methods. To suggest that "awakeFromInsert" is in effect, the "designated initializer" is at best misleading. Please read the article I referred to initially to see why.

mmalc

_______________________________________________
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: 
 >Re: Binding to to-one relationship (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Getting the results out of Applescript
  • Next by Date: Re: is this string styled?
  • Previous by thread: Re: Binding to to-one relationship
  • Next by thread: Bindings - custom null value placeholder for text field with date formatter?
  • Index(es):
    • Date
    • Thread