Re: Help with Cocoa document app & controllers
Re: Help with Cocoa document app & controllers
- Subject: Re: Help with Cocoa document app & controllers
- From: mmalc crawford <email@hidden>
- Date: Wed, 26 Dec 2007 19:02:53 -0800
On Dec 26, 2007, at 6:43 PM, Rick Mann wrote:
Which means I can't do any real initialization in my controller's -
init method. So, where am I supposed to do it? I know it's getting
loaded eventually; the window shows up.
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindowController/windowDidLoad
>
I looked at that, but it doesn't let me initialize the window from
my document subclass.
Well, you asked "Where are you supposed to do it", to which the
typical answer is "in windowDidLoad".
If you really want to do initialization from the document subclass,
then per Jeff's earlier reply you need to ensure the window is loaded
first, in which case simply invoke 'window'.
mmalc
_______________________________________________
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