• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make the whole view go full screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make the whole view go full screen


  • Subject: Re: Make the whole view go full screen
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 13 Jan 2009 15:22:51 +0100


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 <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:
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


_______________________________________________

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


References: 
 >Make the whole view go full screen (From: Jonathan Selander <email@hidden>)
 >Re: Make the whole view go full screen (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Make the whole view go full screen (From: "Chunk 1978" <email@hidden>)
 >Re: Make the whole view go full screen (From: Jonathan Selander <email@hidden>)

  • Prev by Date: How to center a custom NSView in a NSScrollView
  • Next by Date: Information request on QT streaming
  • Previous by thread: Re: Make the whole view go full screen
  • Next by thread: NSRuleEditor bindings
  • Index(es):
    • Date
    • Thread