Re: Nib owner's outlets
Re: Nib owner's outlets
- Subject: Re: Nib owner's outlets
- From: Vince DeMarco <email@hidden>
- Date: Thu, 24 Jan 2002 11:15:37 -0800
On Wednesday, January 23, 2002, at 04:12 AM, Michel Fortin wrote:
I've made a preference panel with a subclass of NSWindowController as
the controller. In the nib file, the owner is set to my subclass. When
the window controller loads the nib, owner's outlets do not get
connected to to controls in the window. This is what I use to open the
preference panel:
- (IBAction)openPreferences:(id)sender {
if ( prefs == nil )
prefs = [[PreferenceWindowController alloc]
initWithWindowNibName:@"Preferences"];
[prefs showWindow:nil];
}
I've done it before in another app, but this one doesn't work and I
can't find why. All actions are connected fine. I've even tried making
the nib from scratch without success. Any ideas?
NSWIndowController has an window outlet is that connected to the correct
window???
vince