full-screen window?
full-screen window?
- Subject: full-screen window?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 17 May 2003 01:58:17 +0200
Hi, me again :-)
Does anybody have an idea how I can create a window so it covers an
entire screen? My application can be run in two different modes:
1) single-screen: All windows are regular windows on a single screen
2) multi-screen: All windows save for one are on the main screen, while
on the second screen the "stage" window is shown. Its content area is
supposed to cover the entire screen, and I don't want any window
borders or title bars visible on that screen. I tried:
NSArray* screens = [NSScreen screens];
if( [screens count] > 1 )
{
NSScreen* secondScreen = [screens objectAtIndex:1];
NSRect theBox = [secondScreen frame];
theBox.size.height += 22;
[overlayWindow setFrame:theBox display:TRUE];
}
But whether I add 22 or not, the window always ends up filling the
screen but with its title bar still onscreen. Any clues?
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.