• 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: Appropriate -setWantsLayer: timing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appropriate -setWantsLayer: timing


  • Subject: Re: Appropriate -setWantsLayer: timing
  • From: David Duncan <email@hidden>
  • Date: Tue, 16 Feb 2010 13:40:02 -0800

On Feb 16, 2010, at 12:52 PM, Keith Duncan wrote:

> I'm wondering when writing a layer hosting view, when the most appropriate time is to set the layer and call -setWantsLayer:YES?
>
> Calling it in -initWithFrame: is too early and the view fails to 'draw'.


If you are creating the view programmatically, -initWithFrame: should be fine. If your loading from a nib, then -awakeFromNib is the appropriate place.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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: Appropriate -setWantsLayer: timing
      • From: Keith Duncan <email@hidden>
References: 
 >Appropriate -setWantsLayer: timing (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Preventing system sleep
  • Next by Date: Re: Perform additional action when window receives any mouse- or keyDown
  • Previous by thread: Appropriate -setWantsLayer: timing
  • Next by thread: Re: Appropriate -setWantsLayer: timing
  • Index(es):
    • Date
    • Thread