• 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: [window frame] reporting wrong y coordinate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[window frame] reporting wrong y coordinate (From: Eric Gorr <email@hidden>)
 >Re: [window frame] reporting wrong y coordinate (From: Shawn Erickson <email@hidden>)

  • Prev by Date: RE: UUID method Garbage Collection safe?
  • Next by Date: Re: UUID method Garbage Collection safe?
  • Previous by thread: Re: [window frame] reporting wrong y coordinate
  • Next by thread: How to make the Contextual Menu on the tableview's empty rows unable?
  • Index(es):
    • Date
    • Thread