Re: [myWindowController window] returns null !
Re: [myWindowController window] returns null !
- Subject: Re: [myWindowController window] returns null !
- From: "Stephen J. Butler" <email@hidden>
- Date: Wed, 23 Feb 2011 22:36:30 -0600
On Wed, Feb 23, 2011 at 10:26 PM, Louis Demers <email@hidden> wrote:
> I instantiate a NSWindowController with the nib file name and call showWindow on it.
>
> myWindowController = [[NSWindowController alloc] initWithWindowNibName:@"myWindowXIB" owner: someObject ];
>
> My window and its content show up but when I ask the windowController for the window pointer it returns null. So I can't do anything else with the window. I'm not using an NSDocument stuff... Any clues ?
In IB, is File's Owner class NSWindowController? Did you wire your
window to the File's Owner _window outlet? It doesn't happen
automatically (plus, a nib could contain more than one window if you
wanted).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden