Re: Subclassed AppKit vis IB & Designated Initializer
Re: Subclassed AppKit vis IB & Designated Initializer
- Subject: Re: Subclassed AppKit vis IB & Designated Initializer
- From: Brent Gulanowski <email@hidden>
- Date: Thu, 13 May 2004 17:09:30 -0400
On May 13, 2004, at 3:47 PM, Ondra Cada wrote:
>
Brent,
>
>
On 13.5.2004, at 20:08, Brent Gulanowski wrote:
>
>
> How do I make sure that if I subclass an AppKit class to use in my
>
> GUI,
>
> that Interface Builder will call its designated initializer? Or has
>
> IB
>
> stopped bothering?
>
>
Oh, just make it read your documentation thoroughly, and it would
>
surely bother. Otherwise, how do you propose it finds which
>
initializer is the designated one of your class?
Bah, it should be smart as I expect! Anyway I just thought maybe it
would use the same designated initializer as the superclass, especially
since it knows almost everything else about it because of that
(attributes to set, connections, and the like). It would be nice if
there was some way to tell IB that it was either the case or not the
case, anyway. I know, I know, I ask too much.
Maybe one day the language will have support for designated initializer?
>
>
Meantime, whilst IB does not read docs that often, try using
>
awakeFromNib for initialization. If for some reason impossible, you
>
may override initWithCoder:.
Aha, I forgot about that. Thanks, Ondra.
--
Brent Gulanowski email@hidden
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.