Add setObject:

This commit is contained in:
Gregory John Casamento 2020-04-24 03:32:57 -04:00
parent 6e3d3a87d8
commit 33e2bbd1f0

View file

@ -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