• 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: 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

References: 
 >Re: Appropriate -setWantsLayer: timing (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Appropriate -setWantsLayer: timing
  • Next by Date: Stuck on NSTreeController bindings
  • Previous by thread: Re: Appropriate -setWantsLayer: timing
  • Next by thread: Re: Appropriate -setWantsLayer: timing
  • Index(es):
    • Date
    • Thread