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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com