• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: clip cursor in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >clip cursor in NSView (From: "Gami Ravi" <email@hidden>)

  • Prev by Date: Re: clip cursor in NSView
  • Next by Date: Re: clip cursor in NSView
  • Previous by thread: Re: clip cursor in NSView
  • Next by thread: What does this SystemFlippers message mean
  • Index(es):
    • Date
    • Thread