Re: Appropriate -setWantsLayer: timing
Re: Appropriate -setWantsLayer: timing
- Subject: Re: Appropriate -setWantsLayer: timing
- From: Dave Keck <email@hidden>
- Date: Wed, 17 Feb 2010 17:07:54 -1000
> Maybe I'm misunderstanding, but I'm wondering, why not put everything into a
> single method and call that method from both initWithFrame and awakeFromNib?
> One and only one of these will be called (depending whether you are
> instantiating in code or in a nib), so your single method will be called
> exactly once and you're off to the races. m.
This isn't true for 10.5; both -initWithFrame: and -awakeFromNib are
called if the view was instantiated via the NIB machinery. I suspect
10.6 is no different.
_______________________________________________
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