I'm trying to create a preference window, but I am having a problem bringing the window "back to life." When I first launch the program and open the pref window, it opens fine. I then close the pref window and try to open it again and no window pops up. How do I get the window to come back up after I close it? Here is how I open it in the first place through the window controller:
...and in the NSWindow subclass I just have
Code:
-(void)showPreferenceWindow:(id)sender
{
[NSApp activateIgnoringOtherApps:YES];
[[self window] center];
[[self window] makeKeyAndOrderFront:nil];
}
...and in the NSWindow subclass I just have
Code:
-(void)awakeFromNib
{
[self setHidesOnDeactivate:NO];
[self setReleasedWhenClosed:NO];
}