• 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: initWIthFrame or awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWIthFrame or awakeFromNib


  • Subject: Re: initWIthFrame or awakeFromNib
  • From: Luke the Hiesterman <email@hidden>
  • Date: Wed, 13 May 2009 16:59:29 -0700

If you have some initialization that needs to be done from multiple init points, it's common to create a method for this, say commonSetup. Then in all init paths, you would do [self commonSetup].

Luke

On May 13, 2009, at 4:56 PM, Ramakrishna Vavilala wrote:

I have a custome view class which I use to host some CALayers. As I specify
the view in the Nib file, I use awakeFromNib to create the CALayers. Part of
me however thinks that initWithFrame might be more suitable for this
initialization as it can be used for views created outside of interface
builder (not likely for my project).
Which method is the correct one?


Thanks
Rama Krishna
_______________________________________________

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: initWIthFrame or awakeFromNib
      • From: Joar Wingfors <email@hidden>
References: 
 >initWIthFrame or awakeFromNib (From: Ramakrishna Vavilala <email@hidden>)

  • Prev by Date: initWIthFrame or awakeFromNib
  • Next by Date: Re: struggling with binding, NSOutlineView, and NSTableView
  • Previous by thread: initWIthFrame or awakeFromNib
  • Next by thread: Re: initWIthFrame or awakeFromNib
  • Index(es):
    • Date
    • Thread