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 (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