• 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: Custom NSSlider?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSSlider?


  • Subject: Re: Custom NSSlider?
  • From: Kevin Gessner <email@hidden>
  • Date: Mon, 1 Dec 2008 19:48:39 -0500

What if you handle the label via bindings, but your long process via the target/action? Then you could use -[NSSlider sendActionOn:] (inherited from NSControl) with NSLeftMouseUpMask to only send the action on drag end. It seems like this would work for a slider, though I'm not sure if the bindings update would be affected by this setting.

HTH,
-- Kevin

Kevin Gessner
http://kevingessner.com
email@hidden





On Dec 1, 2008, at 7:34 PM, Jean-Nicolas Jolivet wrote:

I was wondering if its possible to have an NSSlider send an action after the user finished dragging, while still providing continuous updates?

The thing is, when the slider value changes, there's a considerably long process that will take place so I can't set my slider to continuous, but I would like to provide a continuous update of the UI (i.e. the label that displays the slider value)...

I'm guessing I will probably have to subclass but even then I'm not really sure where to start??

Any info would be appreciated...

Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com

_______________________________________________

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

_______________________________________________

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: 
 >Custom NSSlider? (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Custom NSSlider?
  • Next by Date: Re: Custom NSSlider?
  • Previous by thread: Custom NSSlider?
  • Next by thread: Re: Custom NSSlider?
  • Index(es):
    • Date
    • Thread