How to track Slider's value while dragging the mouse?
NSSlider only changes its value (and fires its target/action and the binding) when the user releases the mouse button. Whereas I need to track the current value of the slider while the mouse is being dragged, with the button held down -- like thumbnail size in iPhoto. I can't believe I have to implement my own slider to get this behavior. Neither I can find the property of NSSlider that would make it behave like this. Am I missing something? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to track Slider's value while dragging the mouse?
Hi Oleg, The property you want is setContinuous:YES, or check the "Continuous" checkbox in Interface Builder. (The method is defined on NSSilder's superclass, NSControl.) Hope this helps, - Greg On Sep 24, 2008, at 7:08 AM, Oleg Krupnov wrote: NSSlider only changes its value (and fires its target/action and the binding) when the user releases the mouse button. Whereas I need to track the current value of the slider while the mouse is being dragged, with the button held down -- like thumbnail size in iPhoto. I can't believe I have to implement my own slider to get this behavior. Neither I can find the property of NSSlider that would make it behave like this. Am I missing something? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/greg%40omnigroup.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to track Slider's value while dragging the mouse?
- setContinuous: setContinuous: Sets whether the receiver’s cell sends its action message continuously to its target during mouse tracking. - (void)setContinuous:(BOOL)flag Parameters flag YES if the action message should be sent continuously; otherwise, NO. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]