I need to update some user interface objects by timer, but when I touch slider with continuous action everything freeze beside slider. in iOS this version work fine, but in mac os x some problems :(
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
tick = 0;
[NSTimer scheduledTimerWithTimeInterval:0.25f
target:self
selector:@selector(timerTick)
userInfo:nil
repeats:YES];
}
- (void)timerTick
{
tick++;
[self.labelTest setIntegerValue:tick];
}
- (IBAction)sliderAction:(id)sender
{
// do something
NSLog(@"%g", [self.sliderMain doubleValue]);
}