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

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


  • Subject: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • From: Gerben Wierda <email@hidden>
  • Date: Fri, 16 Aug 2002 16:52:24 +0200

I have a subclass of NSDocument and NSWindowController. Now, I seem to have messed things up. Because windowControllerDidLoadNib is never called. Who is responsible for calling this method? Am I myself (in makeWindowControllers)?

And more: at what moment can I trust that outlets in my NSWindowController subclass are connected (have a non-nil value)?

Thanks,

G

From my NSDocument subclass:

- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
[super windowControllerDidLoadNib:aController];
// Add any code here that need to be executed once the windowController has loaded the document's window.

// snip (this method is never called)
}

- (void)makeWindowControllers {
_cachedWindowController = [[II2WindowController allocWithZone:[self zone]] initWithWindowNibName:@"II2Package"];
[self addWindowController:_cachedWindowController];
}
_______________________________________________
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.
  • Follow-Ups:
    • Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
      • From: Bill Cheeseman <email@hidden>
    • Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: RE: Programming style (was Accessors) revisited ; de-compiler ???
  • Next by Date: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Previous by thread: [ANN] PdfCompress 0.6b
  • Next by thread: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Index(es):
    • Date
    • Thread