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

lynkynpark86

macrumors 6502
Original poster
I am making an application with a main window, which opens and closes other windows. I have the part about closing other windows figured out (connect a button to the second window and choose "preformClose" or something like that), but I need to make another window Open when a button is clicked, not close. Any ideas?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
If the window's in the same nib as the other window, connect the button to makeKeyAndOrderFont: in the window you want to open and make sure "Visible at Launch" is unchecked. If the window's in another nib, you should use NSWindowController.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.