Hi,
This slider's control action function:
Why does application is hang?
Thanks.
This slider's control action function:
Code:
- (IBAction)dragSlider:(id)sender
{
NSNumber *tmpValue = nil;
if(_isChecked == YES)
{
// double value
tmpValue = [NSNumber numberWithInt: [ sender intValue ] *2 ];
[ _position setStringValue: [ tmpValue stringValue ] ];
}
else
{
tmpValue = [NSNumber numberWithInt: [ sender intValue ] ];
[ _position setStringValue: [ tmpValue stringValue ] ];
}
// free resources
[tmpValue release];
}
Thanks.