Re: mouse location across multiple monitors
Re: mouse location across multiple monitors
- Subject: Re: mouse location across multiple monitors
- From: Shaun Wexler <email@hidden>
- Date: Mon, 22 Nov 2004 04:16:38 -0800
On Nov 22, 2004, at 12:33 AM, Nathan Day wrote:
What is the relationship between the frames of the different screens
on a Multi-display macintosh set up and what happens the [NSEvent
mouseLocation] as the cursor moves from one screen to another.
The cursor is clamped to each screen's frame, and for adjacent screen
edges the global (ie windowframe) coordinates are contiguous.
I have an application that does some tricky stuff with windows and
screen edges, instead of my custom windows dragging half off the
screen they stick to the screen edge instead. This currently means my
windows can not be dragged from one monitor to another.
If the mouse position is outside the current screen frame by N pixels,
you could allow the window to change screens. ;)
Is there any way to simulate multiple screens with soft for testing
purposes, there is at least one workspace switching program out there
does this behave like multiple displays from a Cocoa programs
perspective.
If you have a PowerBook or a twin-view graphics card, just plug in a
dummy ADC/DVI/VGA adapter, and it will simulate a 2nd screen at the
default/min size (unless one has already been configured).
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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