Re: awakeFromNib and windowWillLoad : basic question
Re: awakeFromNib and windowWillLoad : basic question
- Subject: Re: awakeFromNib and windowWillLoad : basic question
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 05 Jul 2003 07:36:50 -0400
on 03-07-04 2:24 PM, Chris Hanson at email@hidden wrote:
>
I prefer to use -awakeFromNib only to finish configuring controls
>
themselves, while I prefer to populate them in -windowDidLoad (or its
>
NSDocument equivalent). Why? Because they're conceptually two
>
different thing. The first is essentially to make up for a lack of
>
Interface Builder palettes to finish configuring your view objects --
>
for instance, being able to set an NSTableView's double-click action,
>
or configuring a data cell for a table column -- while the second
>
involves gluing your model objects to your view objects.
That's the best rationale I've seen for distinguishing these APIs. I never
got it quite this straight in my mind. Thanks.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.