Re: Binding to to-one relationship
Re: Binding to to-one relationship
- Subject: Re: Binding to to-one relationship
- From: Matt Neuburg <email@hidden>
- Date: Sat, 07 Jan 2006 06:29:29 -0800
- Thread-topic: Binding to to-one relationship
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.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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