• 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
How to: continue tracking mouse-drag event even after cursor moves out of the movie....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to: continue tracking mouse-drag event even after cursor moves out of the movie....


  • Subject: How to: continue tracking mouse-drag event even after cursor moves out of the movie....
  • From: rajesh <email@hidden>
  • Date: Fri, 17 Apr 2009 16:02:16 +0200

Hi All,

I have two views aligned side by side in parent view (All being NSView's )

I am overriding
-(void)mouseDown:(NSEvent *)event
- (void)mouseDragged:(NSEvent *)theEvent for some custom drawing in child view subclass


To be specific, I draw some rectangle boxes during mouse drag in child view's.

Problem: when cursor moves out of the child view( during mouse drag ) , obviously, I am not able to track the event and hence I cannot resize the rectangle.
I am looking something like autoScroll for NSScrollView , which tracks the mouse movements even outside the application window...


Is there any obvious or complex way to achieve this.....

Thanks in Advance

Rajesh

_______________________________________________

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


  • Follow-Ups:
    • Re: How to: continue tracking mouse-drag event even after cursor moves out of the movie....
      • From: Graham Cox <email@hidden>
  • Prev by Date: Mac Error Reporting
  • Next by Date: Re: How to: continue tracking mouse-drag event even after cursor moves out of the movie....
  • Previous by thread: Re: Mac Error Reporting
  • Next by thread: Re: How to: continue tracking mouse-drag event even after cursor moves out of the movie....
  • Index(es):
    • Date
    • Thread