2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2009-12-19 20:15:16 +00:00
|
|
|
|
|
|
|
#import "InfoTextField.h"
|
|
|
|
|
|
|
|
@implementation InfoTextField
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setStringValue:(NSString*)string
|
2009-12-19 20:15:16 +00:00
|
|
|
{
|
2021-08-07 07:27:56 +00:00
|
|
|
super.stringValue = string;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
self.selectable = ![self.stringValue isEqualToString:@""];
|
2009-12-19 20:15:16 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setObjectValue:(id<NSCopying>)object
|
2009-12-19 20:15:16 +00:00
|
|
|
{
|
2021-08-07 07:27:56 +00:00
|
|
|
super.objectValue = object;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
self.selectable = ![self.stringValue isEqualToString:@""];
|
2009-12-19 20:15:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|