Re: full-screen window?
Re: full-screen window?
- Subject: Re: full-screen window?
- From: Rosyna <email@hidden>
- Date: Sat, 17 May 2003 01:04:09 -0700
pass NSBorderlessWindowMask as the styleMask in -
(id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag;
This can only be set on window creation it seems.
Ack, at 5/17/03, Uli Kusterer said:
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?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
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.