Showing a window from a second nib
Showing a window from a second nib
- Subject: Showing a window from a second nib
- From: Brian Luft <email@hidden>
- Date: Sat, 05 Jan 2002 19:01:04 -0600
Greetings.
I'm attempting to load my About window from a second nib. The second nib is
called "About.nib" and contains my window and my custom class,
AboutController, as its file owner. The AboutController contains an outlet
to the window and a function called showWindow:. My showWindow function
loads the nib and displays the window in the following fashion:
[NSBundle loadNibNamed: @"About" owner: self];
[window center];
[window makeKeyAndOrderFront: self];
(window is the outlet). My loadNibNamed is returning YES, but my window
outlet is (null) and consequently the center and makeKeyAndOrderFront are
failing. I'm not seeing any errors in the console, either. Any ideas?
Thanks in advance. Brian