Re: Position of window on screen
Re: Position of window on screen
- Subject: Re: Position of window on screen
- From: Paul Harvey <email@hidden>
- Date: Mon, 30 Jan 2006 16:26:14 +0000
Thanks Daniel. The answer I really needed was that the window is in
screen coordinates. Now that you've confirmed this, I know to look
elsewhere for why I'm seeing 0,0 when I ask my window its
frame.origin.x / y values.
--
Paul Harvey
Technical Partner
This Way Up
Thinking Design
T 020 7688 8800
On Jan 30, 2006, at 16:08, Daniel Jalkut wrote:
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