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

NSDocument window not showing


  • Subject: NSDocument window not showing
  • From: Agent M <email@hidden>
  • Date: Sat, 13 Nov 2004 17:54:56 -0500

A have an NSDocument application which refuses to show its document window.

I subclassed NSWindowController and I verified that

-(void)makeWindowControllers

is being called. I also verified that the added controller is non-nil. Here's the method from my window controller subclass:

-(id)init
{
	if(self=[super initWithWindowNibName:@"Project"])
	{
		NSLog(@"window: %@",[self window]);
	}
	return self;
}

This outputs "window: (null)" and no window appears. I checked that this does not happen in Sketch because I found it odd that I could create the window controller with no window. Why isn't the window being loaded? Why don't I see any error? The nib is called "Project" and contains a window. I made all the window's settings (in the inspector) identical to those of Sketch's document window. Even stranger, -(void)windowDidLoad is called in the controller- wouldn't that be a bug?

Thanks for any insight.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument window not showing
      • From: Larry Fransson <email@hidden>
  • Prev by Date: Re: Using Cocoa to get UID
  • Next by Date: Re: Bindings - Address Display Problem?
  • Previous by thread: Re: nubie attempt to use NSTableView with NSArrayController[resolved]
  • Next by thread: Re: NSDocument window not showing
  • Index(es):
    • Date
    • Thread