buttons now momentarily go the the pressed state when clicked programmatically. Closes #187

This commit is contained in:
luddep authored and Ross Boucher committed 2010-01-07 22:17:05 -08:00
1 parent d791a189bc
commit fe2599eb35
1 file changed
+6
+6
View File
@@ -308,6 +308,12 @@ var CPControlBlackColor = [CPColor blackColor];
[self highlight:YES];
[self setState:[self nextState]];
[self sendAction:[self action] to:[self target]];
[CPTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(unhighlightButtonTimerDidFinish:) userInfo:nil repeats:NO];
}
- (void)unhighlightButtonTimerDidFinish:(id)sender
{
[self highlight:NO];
}