• 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: Yet another CALayer puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another CALayer puzzle


  • Subject: Re: Yet another CALayer puzzle
  • From: "Ken Ferry" <email@hidden>
  • Date: Wed, 22 Oct 2008 10:04:45 -0700

You need to override -initWithCoder: in addition to -initWithFrame:.  NSView
has two designated initializers.
-Ken

On Wed, Oct 22, 2008 at 9:48 AM, DKJ <email@hidden> wrote:

> I've got myView and myController objects in my nib file. myView is an
> IBOutlet of myController. I put this in the initWithFrame: method of myView:
>
>        CALayer *rootLayer = [CALayer layer];
>        [self setLayer:rootLayer];
>        [self setWantsLayer:YES];
>
> But when I read myView's wantsLayer in the awakeFromNib method of
> myController, I find its value is 0. How did the value get changed?
> _______________________________________________
>
> 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
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Yet another CALayer puzzle
      • From: DKJ <email@hidden>
References: 
 >Yet another CALayer puzzle (From: DKJ <email@hidden>)

  • Prev by Date: Re: Yet another CALayer puzzle
  • Next by Date: Re: NSInMemoryStoreType: Not really "persistent", is it?
  • Previous by thread: Re: Yet another CALayer puzzle
  • Next by thread: Re: Yet another CALayer puzzle
  • Index(es):
    • Date
    • Thread