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

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
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?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
In IB on the window check to see if "Visible At Launch" is enabled - if it is turn it off.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.