• 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: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?


  • Subject: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • From: Gerben Wierda <email@hidden>
  • Date: Sat, 17 Aug 2002 01:04:48 +0200

On Saturday, August 17, 2002, at 12:46 , Kyle Moffett wrote:

Yes, or just put your code in at the end of the makeWindowControllers function.
The windowControllerDidLoadNib is called to signify that all the connections are
made and the window is loaded, namely right after you makeWindowControllers.
It was just designed as a method of initialization that requires slightly less work
than the makeWindowControllers method.

Nope, that does not work either. At the end of makeWindowControllers, the nib has not been awoken and the outlets are still all 0.

The 'solution' I came up with in the end was to implement awakeFromNib in my NSWindowController subclass and call windowControllerDidLoadNib for the document from there. It should not be necessary and I am at a loss explaining why I need this, but it works now so I'll let it at that.

G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib? (From: Kyle Moffett <email@hidden>)

  • Prev by Date: Re: Creating Menu Items from NSMutableArray
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Next by thread: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Index(es):
    • Date
    • Thread