mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 05:50:48 +00:00
Add target/action
This commit is contained in:
parent
bfa9f0c1c2
commit
dae6b91c99
2 changed files with 22 additions and 0 deletions
|
@ -48,6 +48,26 @@
|
|||
return _state;
|
||||
}
|
||||
|
||||
- (void) setAction: (SEL)action
|
||||
{
|
||||
_action = action;
|
||||
}
|
||||
|
||||
- (SEL) action
|
||||
{
|
||||
return _action;
|
||||
}
|
||||
|
||||
- (void) setTarget: (id)target
|
||||
{
|
||||
_target = target;
|
||||
}
|
||||
|
||||
- (id) target
|
||||
{
|
||||
return _target;
|
||||
}
|
||||
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[[GSTheme theme] drawSwitchInRect: rect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue