• 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
makeWindowControllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeWindowControllers


  • Subject: makeWindowControllers
  • From: Brent Gulanowski <email@hidden>
  • Date: Wed, 2 Jul 2003 15:36:30 -0400

hi everybody!

What I am forgetting?

-(void)makeWindowControllers {

[self buildQuadtree];

// create main window controller
mainWindowController = [[SCMainWindowController alloc] initWithWindowNibName:@"MainWindow"];
[self addWindowController:mainWindowController];
[mainWindowController window];
// [super makeWindowControllers];
}

-(void)windowControllerDidLoadNib:(NSWindowController *)windowController {

NSLog(@"%@", NSStringFromSelector(_cmd));
if( YES == [windowController isKindOfClass:NSClassFromString(@"SCMainWindowController")] )
[self createTextures];
}

--

Docs don't say that overrides of -makeWindowControllers are supposed to call super's version, but if I don't, -windowControllerDidLoadNib does not get called. How non-intuitive is that? -windowControllerDidLoadNib gets called by the window controller, not the document! What's going on in NSDocument's default implementation of makeWindowControllers that I'm forgetting in my version? There is nothing apparently wrong with calling super's implementation, but in testing, I notice that it's trying to call -windowNibName. The docs make it sound like my version is replacing NSDocument's version, not augmenting it.

Thanks,

Brent Gulanowski email@hidden
_______________________________________________
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: makeWindowControllers
      • From: Carl Norum <email@hidden>
    • Re: makeWindowControllers
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Strong language about Cocoa and Qt.
  • Next by Date: Re: Static vs. Dynamic typing
  • Previous by thread: NSTask setStandardInput screws up notifications
  • Next by thread: Re: makeWindowControllers
  • Index(es):
    • Date
    • Thread