Re: [window frame] reporting wrong y coordinate
Re: [window frame] reporting wrong y coordinate
- Subject: Re: [window frame] reporting wrong y coordinate
- From: Eric Gorr <email@hidden>
- Date: Wed, 22 Jul 2009 15:43:38 -0400
On Jul 22, 2009, at 3:36 PM, Shawn Erickson wrote:
On Wed, Jul 22, 2009 at 12:28 PM, Eric Gorr<email@hidden>
wrote:
There is a sample application at:
http://www.ericgorr.net/cocoadev/WindowPosition.zip
and inside of the zip file is a screen shot (screen shot.tiff) of
what I see
when I run the application.
It shows the lower y coordinate of the window at -24 and the window
is
entirely on screen.
I have two screens connected to my machine.
The y coordinate [window frame] returns is only wrong when the
resolutions
of the two screens are different and the window is on the second
screen (the
one without the menubar).
What you are seeing is expected based on what you describe. The main
display (one with menu bar) defines the 0,0 origin for the virtual
desktop and the origins for secondary displays are relative to that
main display. Window frame coordinates are in terms of this virtual
desktop not in terms of given display.
Interesting. Thank 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