mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Add mouseDown: implementation
This commit is contained in:
parent
aa9344c78b
commit
4d7bc4435b
1 changed files with 12 additions and 0 deletions
|
@ -57,5 +57,17 @@
|
|||
knobColor: [NSColor redColor]];
|
||||
}
|
||||
|
||||
- (void) mouseDown: (NSEvent *)event
|
||||
{
|
||||
if (_state == NSControlStateValueOn)
|
||||
{
|
||||
[self setState: NSControlStateValueOff];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setState: NSControlStateValueOn];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue