sheets being disconnected from the window

Discussion in 'Mac Programming' started by Chirone, Mar 24, 2011.

  1. Chirone macrumors 6502

    Mar 2, 2009
    I have two NSWindowControllers setup both from XIBs
    I want one of them to show up as a sheet on a different window made from a different XIB.
    The problem comes when I call NSApplication's beginSheet:modalForWindow: modalDelegate:didEndSelector:contextInfo: function
    one of those two window controllers i mentioned before will show up as a sheet as you'd expect.
    The other one doesn't. It shows up in the initial location that is defined in the xib, without the bar at the top with the close button.

    what causes a window to come on as a sheet and not be connected to the window?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    In IB on the window check to see if "Visible At Launch" is enabled - if it is turn it off.

Share This Page