NSSlider value difference in two places...

2014-06-01 Thread Peters, Brandon
Issue: I have a slider used to adjust a value. When the slider is moved, an action is triggered to display the value in a panel. When a start button is pressed, another action is triggered, and within that action the value of the slider is ascertained. I have discovered than when calling the

Re: NSSlider value difference in two places...

2014-06-01 Thread Graham Cox
On 2 Jun 2014, at 10:28 am, Peters, Brandon bap...@my.fsu.edu wrote: have a slider used to adjust a value. When the slider is moved, an action is triggered to display the value in a panel. When a start button is pressed, another action is triggered, and within that action the value of the

Re: NSSlider value difference in two places...

2014-06-01 Thread Peters, Brandon
Graham, For the first action: Declaration: // allows user to set the value of the friction coefficient IBOutlet NSSlider *_frictionSlider; // displays friction coefficient chosen by the user IBOutlet NSTextField *_frictionDisplay; // allows user to set the mass

Re: NSSlider value difference in two places...

2014-06-01 Thread Graham Cox
I can't see anything obviously wrong Peter - assuming your text fields do update properly it would suggest that your sliders are connected, in which case the second bit of code should work. Whatever the problem is, it's not in this part of the code. I would say that your approach here is a bit

Re: NSSlider value?

2008-11-11 Thread Nick Zitzmann
On Nov 11, 2008, at 3:17 PM, Mr. Gecko wrote: Short Question How can I get the value and set the value for NSSlider? -doubleValue and -setDoubleValue:. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list

Re: NSSlider value?

2008-11-11 Thread Andrew Farmer
On 11 Nov 08, at 14:17, Mr. Gecko wrote: Short Question How can I get the value and set the value for NSSlider? NSSlider is a subclass of NSControl, so it inherits all the getter and setter methods from that class. The two you're probably most interested in are floatValue and

NSSlider value?

2008-11-11 Thread Mr. Gecko
Short Question How can I get the value and set the value for NSSlider? ___ 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

Re: NSSlider value?

2008-11-11 Thread Graham Cox
On 12 Nov 2008, at 9:17 am, Mr. Gecko wrote: Short Question How can I get the value and set the value for NSSlider? Since NSSlider is a subclass of NSControl it supports the substantial list of methods there to get/set its value. hth, Graham

Re: NSSlider value?

2008-11-11 Thread Mr. Gecko
Lots of the same answers and it works, thanks. On Nov 11, 2008, at 4:29 PM, Graham Cox wrote: On 12 Nov 2008, at 9:17 am, Mr. Gecko wrote: Short Question How can I get the value and set the value for NSSlider? Since NSSlider is a subclass of NSControl it supports the substantial list

Re: Displaying live NSSlider value

2008-06-17 Thread I. Savant
I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed. As far as I can tell I'll have to set the slider to send its action

Re: Displaying live NSSlider value

2008-06-17 Thread Michael Ash
On Tue, Jun 17, 2008 at 1:19 PM, Andy Klepack [EMAIL PROTECTED] wrote: I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed. As far

Re: Displaying live NSSlider value

2008-06-17 Thread Omar Qazi
On Jun 17, 2008, at 1:19 PM, Andy Klepack wrote: I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed. As far as I can tell