• 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: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


References: 
 >Help with Cocoa document app & controllers (From: Rick Mann <email@hidden>)
 >Re: Help with Cocoa document app & controllers (From: Jeff Johnson <email@hidden>)
 >Re: Help with Cocoa document app & controllers (From: Rick Mann <email@hidden>)
 >Re: Help with Cocoa document app & controllers (From: mmalc crawford <email@hidden>)
 >Re: Help with Cocoa document app & controllers (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: List of available methods at runtime
  • Next by Date: Re: Predicates
  • Previous by thread: Re: Help with Cocoa document app & controllers
  • Next by thread: Re: Help with Cocoa document app & controllers
  • Index(es):
    • Date
    • Thread