Re: Help with Cocoa document app & controllers
Re: Help with Cocoa document app & controllers
- Subject: Re: Help with Cocoa document app & controllers
- From: Gordon Apple <email@hidden>
- Date: Wed, 26 Dec 2007 23:11:52 -0600
I wasn't talking about a window controller. He mentioned other
controllers which I assumed might be instantiated as part of the nib. (I
have many). I had just run into a similar situation a few days ago where I
realized that "init" wasn't called for a controller within the nib, so I
simply offered that in case it was applicable to his situation.
> On Dec 26, 2007, at 7:47 PM, Gordon Apple wrote:
>
>> The Init method does not get called for controllers in your nib.
>> (Just
>> ran into that myself recently.) You need initWihCoder or else do
>> what you
>> need in awakeFromNib if it needs to have the connections first.
>> (Connections are guaranteed to be established before awakeFromNib gets
>> called.)
>>
> This is wrong and misleading.
> (a) initWithCoder is not called for a standard NSWindowController
> instance.
> (b) NSWindowController specifies a particular method to override to
> perform initalisation after the interface is loaded -- see
> <http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Class
> es/NSWindowController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSW
> indowController/windowDidLoad
>> .
>
> 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