On Jul 22, 2009, at 3:36 PM, Shawn Erickson wrote:

On Wed, Jul 22, 2009 at 12:28 PM, Eric Gorr<[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to