Add mouseDown: implementation

This commit is contained in:
Gregory John Casamento 2020-04-17 07:22:24 -04:00
parent aa9344c78b
commit 4d7bc4435b

View file

@ -57,5 +57,17 @@
knobColor: [NSColor redColor]];
}
- (void) mouseDown: (NSEvent *)event
{
if (_state == NSControlStateValueOn)
{
[self setState: NSControlStateValueOff];
}
else
{
[self setState: NSControlStateValueOn];
}
}
@end