Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BadWolf13

macrumors 6502
Original poster
Dec 17, 2009
271
0
Second post today, yeah, I'm having a bad day.

My application is set to open another window from the main window. I have a subclass of NSWindowController and using an instance of that subclass called details. The following line of code opens the window.

Code:
	[details showWindow:self];

It opens the window, yet for some reason, the main window remains the "active" window. Now correct me if I'm wrong, but shouldn't a newly opened window automatically become the "active" window?
 
Do you have the window outlet connected in IB? If not, connect it.

On the window's properties, do you have "Visible at Launch" enabled? If yes, uncheck it.
 
Perhaps I should have mentioned that the panel is a separate XIB file.

When I uncheck "Visible at Launch", the panel doesn't show at all when I click the button in the main window.

Also, I don't have a window outlet, just a subclass of NSWindowController. Could this be a problem?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.