• 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: Variable window size based on screen resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable window size based on screen resolution


  • Subject: Re: Variable window size based on screen resolution
  • From: Richard Somers <email@hidden>
  • Date: Mon, 14 Nov 2011 08:18:56 -0700

One way would be to subclass NSWindow and override the designated initializer -initWithContentRect:styleMask:backing:defer: method. In the initializer you could query the screen resolution and set the window frame accordingly.

--Richard

On Nov 14, 2011, at 8:10 AM, Koen van der Drift wrote:

> Is there a way to a window open in a size relative to the resolution
> of the screen?

_______________________________________________

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

  • Follow-Ups:
    • Re: Variable window size based on screen resolution
      • From: Jens Alfke <email@hidden>
References: 
 >Variable window size based on screen resolution (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Previous by thread: Variable window size based on screen resolution
  • Next by thread: Re: Variable window size based on screen resolution
  • Index(es):
    • Date
    • Thread