• 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
Centering a window on the *current* screen, not the *main* screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Centering a window on the *current* screen, not the *main* screen


  • Subject: Centering a window on the *current* screen, not the *main* screen
  • From: Oleg Krupnov <email@hidden>
  • Date: Tue, 26 Jan 2010 12:10:49 +0200

Hi,

It seems that [NSWindow center] centers the window on the *main* screen.

Now how do I center a window on the screen it currently shows on, on a
multi-monitor Mac?

I could write my own code to position the window, but I don't know how
to reproduce the recommended position of the centered window, which is
slightly above the center.

Thanks!
_______________________________________________

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: Centering a window on the *current* screen, not the *main* screen
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: How to access iTunes using cocoa
  • Next by Date: Re: How to hide dock item and application menu?
  • Previous by thread: Re: How to access iTunes using cocoa
  • Next by thread: Re: Centering a window on the *current* screen, not the *main* screen
  • Index(es):
    • Date
    • Thread