initWIthFrame or awakeFromNib
initWIthFrame or awakeFromNib
- Subject: initWIthFrame or awakeFromNib
- From: Ramakrishna Vavilala <email@hidden>
- Date: Wed, 13 May 2009 19:56:08 -0400
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