Xcode .xib help!

Discussion in 'Mac Programming' started by lynkynpark86, Apr 10, 2010.

  1. lynkynpark86 macrumors 6502

    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?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    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.

Share This Page