• 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: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
      • From: Nick <email@hidden>
References: 
 >NSSlider's mouseDown,mouseUp,mouseDrag - process separately (From: Nick <email@hidden>)

  • Prev by Date: Re: Changing document size of scrollview
  • Next by Date: Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
  • Previous by thread: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
  • Next by thread: Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
  • Index(es):
    • Date
    • Thread