Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
- Subject: Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
- From: Graham Cox <email@hidden>
- Date: Wed, 18 May 2011 21:12:27 +1000
On 18/05/2011, at 9:00 PM, Nick wrote:
> I have a slider, and i have set it "Continuous" checkbox in Interface
> builder. Now its action method is fired on all of these events from
> the e-mail title.
> How can i know what exactly event happened (when - mouseDown, when
> mouseUp and when - mouseDrag)? Is there a way?
You could probably use [NSApp currentEvent] from the slider's action.
But why do you need this? The idea of a control is to abstract basic mouse gestures/events and turn them into a higher-level meaning within your app. Doing different things according to how the slider was clicked is going to act weirdly for the user.
--Graham
_______________________________________________
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