Re: Problem with CALayer delegate
Re: Problem with CALayer delegate
- Subject: Re: Problem with CALayer delegate
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 23 Feb 2008 02:17:36 -0500
On Sat, Feb 23, 2008 at 2:02 AM, Francois-Jean De Brienne
<email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden