Permalink
Browse files

Test CPSegmentedControl enabled state (#2481)

  • Loading branch information...
1 parent 1360caa commit 6061323c361acca64952a107963fa88ae93f8e42 @cacaodev cacaodev committed on GitHub Sep 7, 2016
@@ -118,6 +118,13 @@ CPLogRegister(CPLogConsole);
return;
}
+- (IBAction)enable:(id)sender
+{
+ var enable = [sender state];
+ [segmentedControl1 setEnabled:enable];
+ [segmentedControl2 setEnabled:enable];
+}
+
- (BOOL)assertTrue:(BOOL)value
{
[passedLabel setStringValue:value?@"Passed":@"Failed"];
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 6061323

Please sign in to comment.