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 <j...@mooseyard.com>:


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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to