• 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: "Kyle Sluder" <email@hidden>
  • Date: Sun, 28 Sep 2008 03:19:25 -0400

2008/9/27 Andrew Farmer <email@hidden>:
> NSScreen gives you this functionality, but it's even easier to just have
> [NSWindow center] do the job for
> you.

Just be aware that -center doesn't actually put the window in the
center of the screen.  Vertically, the window is placed about 1/3 of
the way from the top -- this offers it better visual placement if your
intention is to grab the user's attention.  In the case of something
like the Displays System Preferences pane, however, you really do want
to center the window, in which case you can use NSScreen.

--Kyle Sluder
_______________________________________________

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: 
 >How to get the current screen resolution on Mac (From: 熊佳 <email@hidden>)
 >Re: How to get the current screen resolution on Mac (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: design pattern for data acquisition in background thread?
  • Next by Date: Re: How to count composed characters in NSString?
  • Previous by thread: Re: 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