• 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: How to get the current screen resolution on Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the current screen resolution on Mac


  • Subject: Re: How to get the current screen resolution on Mac
  • From: Andrew Farmer <email@hidden>
  • Date: Sat, 27 Sep 2008 19:43:43 -0700

On 27 Sep 08, at 18:00, 熊佳 wrote:
Hi, All, I am a newcomer, I write a simple program on mac, and want to display the main window at the center of screen, i mean the window's position should depends on the screen's width and height, so i need to get the screen resolution, who can tell me how to get it? which api is available?

NSScreen gives you this functionality, but it's even easier to just have [NSWindow center] do the job for you._______________________________________________


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: How to get the current screen resolution on Mac
      • From: "Kyle Sluder" <email@hidden>
References: 
 >How to get the current screen resolution on Mac (From: 熊佳 <email@hidden>)

  • Prev by Date: Need to override +(Class) class?
  • Next by Date: Re: Need to override +(Class) class?
  • Previous by thread: How to get the current screen resolution on Mac
  • Next by thread: Re: How to get the current screen resolution on Mac
  • Index(es):
    • Date
    • Thread