Re: clip cursor in NSView
Re: clip cursor in NSView
- Subject: Re: clip cursor in NSView
- From: Rob Keniger <email@hidden>
- Date: Sat, 17 Jan 2009 15:37:07 +1000
On 17/01/2009, at 2:54 PM, Gami Ravi wrote:
I want to clip cursor in particular rectangle. Ultimately i am
looking for same function as ClipCursor on Windows OS.
How can i achieve same functionality in MAC?
Please don't try. This is what MS says about ClipCursor:
"The ClipCursor function confines the cursor to a rectangular area on
the screen. If a subsequent cursor position (set by the
SetCursorPosfunction or the mouse) lies outside the rectangle, the
system automatically adjusts the position to keep the cursor inside
the rectangular area."
Hijacking the mouse pointer like this is not normal behavior on the Mac.
Why do you want to do this?
--
Rob Keniger
_______________________________________________
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