http://www.cocoabuilder.com/archive/message/cocoa/2008/5/14/206531


Le 13 janv. 09 à 15:01, Jonathan Selander a écrit :

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
<devli...@shadowlab.org> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/chunk1978%40gmail.com

This email sent to chunk1...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40trodon.se

This email sent to jonat...@trodon.se

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org

This email sent to devli...@shadowlab.org


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to