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

Re: makeWindowControllers question


  • Subject: Re: makeWindowControllers question
  • From: Bill Greene <email@hidden>
  • Date: Tue, 2 Dec 2003 14:06:55 -0500

On Dec 2, 2003, at 1:50 PM, mmalcolm crawford wrote:


On Dec 2, 2003, at 10:20 AM, Bill Greene wrote:

When I start my application under the Xcode debugger, makeWindowControllers is called. No surprise there, but the main window never appears. Thereafter, whenever I click on the application icon, makeWindowControllers is called again, but again with no window subsequently appearing.
I determined that -[NSDocumentController openUntitledDocumentOfType:display:], which directly calls makeWindowControllers, gets the correct parameters and apparently does return a valid NSDocument.
Any insight on how I might go about debugging this problem?

Two common scenarios:

Most likely: You've disconnected the 'window' outlet from File's Owner in your document nib;
No, it's connected.
Less likely: You've either not over-ridden -windowNibName, or it returns the wrong string.
I'm overriding makeWindowControllers instead of windowNibName to allow my document to have multiple windows.

mmalc

Thanks for a really prompt response.

-- Bill
_______________________________________________
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 question
      • From: mmalcolm crawford <email@hidden>
References: 
 >makeWindowControllers question (From: Bill Greene <email@hidden>)
 >Re: makeWindowControllers question (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Panther and project builder
  • Next by Date: Re: makeWindowControllers question
  • Previous by thread: Re: makeWindowControllers question
  • Next by thread: Re: makeWindowControllers question
  • Index(es):
    • Date
    • Thread