FROM : Kyle Sluder
DATE : Sat Feb 23 08:17:36 2008
On Sat, Feb 23, 2008 at 2:02 AM, Francois-Jean De Brienne
<francois.<email_removed>> wrote:
> Thanks alot, kyle, that does it. Initializing my layer in the
> awakeFromNib method, my delegate does get called.
>
> But why?
The post I linked you to explains it all; when AppKit loads your nib,
it creates the layer for you, but only after your -initWithFrame: has
been called. So any layer you create and set in -initWithFrame: is
going to be wiped out in between initialization and -awakeFromNib.
--Kyle Sluder
DATE : Sat Feb 23 08:17:36 2008
On Sat, Feb 23, 2008 at 2:02 AM, Francois-Jean De Brienne
<francois.<email_removed>> wrote:
> Thanks alot, kyle, that does it. Initializing my layer in the
> awakeFromNib method, my delegate does get called.
>
> But why?
The post I linked you to explains it all; when AppKit loads your nib,
it creates the layer for you, but only after your -initWithFrame: has
been called. So any layer you create and set in -initWithFrame: is
going to be wiped out in between initialization and -awakeFromNib.
--Kyle Sluder
| Related mails | Author | Date |
|---|---|---|
| Francois-Jean De B… | Feb 23, 05:52 | |
| Matt Long | Feb 23, 06:20 | |
| Francois-Jean De B… | Feb 23, 06:38 | |
| Vinay Prabhu | Feb 23, 06:41 | |
| Francois-Jean De B… | Feb 23, 06:48 | |
| Bob Van Osten | Feb 23, 07:01 | |
| Francois-Jean De B… | Feb 23, 07:21 | |
| Vinay Prabhu | Feb 23, 07:33 | |
| Kyle Sluder | Feb 23, 07:38 | |
| Francois-Jean De B… | Feb 23, 08:02 | |
| Kyle Sluder | Feb 23, 08:17 |






Cocoa mail archive

