Re: NSSlider value difference in two places...
Re: NSSlider value difference in two places...
- Subject: Re: NSSlider value difference in two places...
- From: Graham Cox <email@hidden>
- Date: Mon, 02 Jun 2014 10:37:39 +1000
On 2 Jun 2014, at 10:28 am, Peters, Brandon <email@hidden> 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 slider is ascertained. I have discovered than when calling the second action, the value of the slider is zero, unlike the value when called from the first action. Is this expected behavior? How can get the slider to retain its value from the first called action? Thanks.
This isn't the expected behaviour; sliders and all controls have a value that they remember constantly. How are you referring to the slider in the second action? Using an outlet? Is it connected?
Show your code - something else is wrong.
--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