Re: Handle multiple screens & mouse
Re: Handle multiple screens & mouse
- Subject: Re: Handle multiple screens & mouse
- From: Gabriel Höhener <email@hidden>
- Date: Wed, 14 Oct 2009 09:53:47 +0200
Thank you for your response!
The problem is not about the window but about the mouse. When i
programmatically move the mouse around and cross the borders of my
screens, it jumps to (0,0) on the mainscreen..
The mouse must know the screen borders, which is not that difficult.
But when I move the order of the screens, the origin changes... And
HOW do I calculate dynamically that edges... if I can do that, my
problem is solved.... :S
Thank you!!!
José Gabriel Höhener
Am 14.10.2009 um 05:46 schrieb Jens Alfke <email@hidden>:
On Oct 13, 2009, at 2:35 PM, Gabriel Höhener wrote:
How do I handle multiple screens, if I want to drag a window
programmatically from one screen [NSScreen mainscreen] to another
[[NSScreen screens] objectAtIndex:x]?
I know that I can access the frame from each screen and get like
that the origin and the sizes of each one. But somehow it doesn't
work properly.
If you know the ending position of the window, call [window
setFrame: newFrame display: YES animate: YES].
Next time tell us exactly what you already tried and what exactly
goes wrong.
—Jens
_______________________________________________
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