On Aug 19, 2010, at 8:43 PM, Sherm Pendley wrote:

> On Thu, Aug 19, 2010 at 9:32 PM, Murat Konar <mu...@pixar.com> wrote:
>> CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);
>> 
>> But heed the other's hints that, except for special classes of software
>> (like a VNC app), software that warps the pointer's location independent of
>> the mouse is much un-loved on the Mac.
> 
> One such exception would be 2d or 3d graphics apps, where it's
> expected to have a tool that allows the user to click and drag to
> scale or rotate an object. When such a tool is active, one might
> respond to drag events by modifying the model to match the mouse
> movement, then warping the cursor back to its original position.

For that, you probably want to disassociate the mouse from the cursor with 
CGAssociateMouseAndMouseCursorPosition(false) and hide the cursor.

Regards,
Ken

_______________________________________________

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