I have an NSSlider, and want it to control an NSNumber in an app which will be created in Xcode5. Tried the code below, which returned no errors, but the slider did not change the NSNumber's value:
float sliderValue = ([sender floatValue]);
[myQCView setValue:[NSNumber numberWithInt:sliderValue] forInputKey:@"inputNumber"];
I also tried to add the .value for the sliderValue, but this returned an error:
float sliderValue = ([sender floatValue]);
[myQCView setValue:[NSNumber numberWithInt:sliderValue.value] forInputKey:@"inputNumber"];
Any suggestions ?