Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
- Subject: Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
- From: Andy Lee <email@hidden>
- Date: Thu, 20 Aug 2009 14:36:40 -0400
On Aug 20, 2009, at 11:05 AM, I. Savant wrote:
On Aug 20, 2009, at 10:59 AM, Kyle Sluder wrote:
Use -awakeFromNib to do view setup (turning on layer backing,
creating caches colors, etc.). Use -windowDidLoad (or -
windowControllerDidLoadNib or whatever that NSDocument method is)
for setting up inter-view relationships.
Hmm ... so would you say to do otherwise is "doing it wrong" or
"doing it sub-optimally"?
I'm relatively new to NSWindowController, but I think one benefit is
avoiding multiple calls to awakeFromNib on the same object when you
have objects in a nib which might themselves load nibs.
--Andy
_______________________________________________
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