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:58:43 -0800
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/Classes/NSWindowController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindowController/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