• 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: Problem with CALayer delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with CALayer delegate (From: Francois-Jean De Brienne <email@hidden>)
 >Re: Problem with CALayer delegate (From: "Kyle Sluder" <email@hidden>)
 >Re: Problem with CALayer delegate (From: Francois-Jean De Brienne <email@hidden>)

  • Prev by Date: Re: Problem with CALayer delegate
  • Next by Date: Xcode has no rule to process .xib files in one of my projects
  • Previous by thread: Re: Problem with CALayer delegate
  • Next by thread: Xcode has no rule to process .xib files in one of my projects
  • Index(es):
    • Date
    • Thread