mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
Add setObject:
This commit is contained in:
parent
6e3d3a87d8
commit
33e2bbd1f0
1 changed files with 13 additions and 0 deletions
|
@ -133,6 +133,19 @@
|
|||
return [NSString stringWithFormat: @"%ld", [self integerValue]];
|
||||
}
|
||||
|
||||
- (void) setObjectValue: (id)obj
|
||||
{
|
||||
if ([obj respondsToSelector: @selector(stringValue)])
|
||||
{
|
||||
[self setStringValue: [obj stringValue]];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) objectValue
|
||||
{
|
||||
return [self stringValue];
|
||||
}
|
||||
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[[GSTheme theme] drawSwitchInRect: rect
|
||||
|
|
Loading…
Reference in a new issue