Re: Make the whole view go full screen
Re: Make the whole view go full screen
- Subject: Re: Make the whole view go full screen
- From: Jonathan Selander <email@hidden>
- Date: Tue, 13 Jan 2009 15:01:39 +0100
Cool, seems like I'm on the right track with these functions :)
Now I just need to figure out how to resize the main contentView to
the desktop resolution and to make the background image i put scale up
to the resolution. For the window size i tried this:
screenRect = [[NSScreen mainScreen] frame];
NSLog(@"w: %f, h: %f", screenRect.size.width, screenRect.size.height);
[contentWindow setContentSize:screenRect.size];
Which indeed scales the window to the correct resolution, but the
window bar is still present, and the window isn't positioned
correctly. To position it, i tried:
[contentWindow setFrameTopLeftPoint:screenRect.origin];
I logged the origin values first and noticed they where both 0.0,
which seems as it should be?
Thanks
12 jan 2009 kl. 21.07 skrev Chunk 1978:
personally i've used Carbon for this, but i'm not sure if it's the
most standardized way of attaining full screen. check out:
SetSystemUIMode(kUIModeAllHidden, 0); and
SetSystemUIMode(kUIModeAllSuppressed, 0);
On Mon, Jan 12, 2009 at 12:21 PM, Jean-Daniel Dupas
<email@hidden> wrote:
Le 12 janv. 09 à 18:08, Jonathan Selander a écrit :
Hi,
Is there way to make the whole main windows with all its contents
(including a quartz composition) go full screen, and perhaps even
scale? If
so, how?
Thanks
See the archives for a bunch of solutions, and pro and cons for
each one.
http://www.cocoabuilder.com/search/archive/cocoa?words=fullscreen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden