Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSSlider?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Custom NSSlider? (From: Jean-Nicolas Jolivet <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.