Wheel Start and End
Wheel Start and End
- Subject: Wheel Start and End
- From: Lorenzo <email@hidden>
- Date: Fri, 13 Jul 2007 15:47:17 +0200
As you know it's easy to detect when a mouseDragged event occurs, so you can
firstly set some variable then go into your own loop, then set some variable
after the drag ends.
- (void)mouseDragged:(NSEvent*)theEvent
{
// do some settings here
while(isOnDragging){
theEvent = [[self window] nextEventMatchingMask:eventMask];
... // if mouseUp break;
}
// end of drag, so other settings here
}
Now, I would like to do the same with the scrollWheel.
But I have just an API
- (void)scrollWheel:(NSEvent*)theEvent
and not so many ideas about how to do it. I though to put a timer to check
whether the elapsed time after the last scrollWheel event is more than e.g.
0.5 seconds. If so, I can call the "endOfScrollWheel" event and set some
variables too. Does it sound a good idea?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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