Reputation: 522
G'day, I have been reading about NSSliders for the last hour. Why does NSLog(@"%f",[mySlider doubleValue]) always return zero? Reading the value from the slider into a variable should be straight forward but for some reason it doesn't. Thanks, Andrew.
Upvotes: 2
Views: 178
Reputation: 2572
Have you tried NSLog(@"%@", mySlider) ? It's entirely possible that mySlider is nil at the point you're reading it.
Upvotes: 2