• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with Cocoa document app & controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Help with Cocoa document app & controllers
      • From: Gordon Apple <email@hidden>
References: 
 >Re: Help with Cocoa document app & controllers (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Predicates
  • Next by Date: Re: Using Bindings with C++ objects
  • Previous by thread: Re: Help with Cocoa document app & controllers
  • Next by thread: Re: Help with Cocoa document app & controllers
  • Index(es):
    • Date
    • Thread