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

Re: Position of window on screen


  • Subject: Re: Position of window on screen
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 30 Jan 2006 11:08:28 -0500


On Jan 30, 2006, at 6:20 AM, Paul Harvey wrote:

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?

This sounds wrong to me. The frame of a window is in screen coordinates. Are you sure your window is really a window, and not an unconnected outlet, or something?


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?

This sounds reasonable.

Daniel

_______________________________________________
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: Paul Harvey <email@hidden>
References: 
 >Position of window on screen (From: Paul Harvey <email@hidden>)

  • Prev by Date: Re: reference to own window?
  • Next by Date: Re: Position of window on screen
  • Previous by thread: Position of window on screen
  • Next by thread: Re: Position of window on screen
  • Index(es):
    • Date
    • Thread