• 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
Position of window on screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Position of window on screen


  • Subject: Position of window on screen
  • From: Paul Harvey <email@hidden>
  • Date: Mon, 30 Jan 2006 11:20:32 +0000

I'm trying to find the origin/position of a window with respect to the screen it's on. Using the 'frame' property of the window always returns 0.0 as the origin. Is this is because it's with respect to itself? How can I get it's position with respect to the bottom-left of the screen?

And with multiple screens, I understand that the coords of the bottom left is with reference to the main screen, ie, each screen does not have 0,0 as it's bottom-left point. If so, then I should be able to tell which screen my window is on by taking the respective screen position of the window, and using the pixel dimensions of the screens to work it out, is that right?

Thanks.

--
Paul Harvey

Lead Programmer
email@hidden

Hiddenfield Software
"Creating useful software for Mac OS X"
www.hiddenfield.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Position of window on screen
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: reference to own window?
  • Next by Date: Re: Trouble refreshing iCal
  • Previous by thread: Re: reference to own window?
  • Next by thread: Re: Position of window on screen
  • Index(es):
    • Date
    • Thread