summaryrefslogtreecommitdiffstats
path: root/macosx/DockTextField.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-12-30 09:01:21 +0100
committerDamiano Galassi <[email protected]>2016-12-30 09:01:21 +0100
commit6c9569df06635b942248d4a30897bae07280b765 (patch)
tree371073b3b0254d38478b87d42c818218a9dad52e /macosx/DockTextField.h
parent2dd9968af2db70243337085bfa3de46fa580f9b1 (diff)
MacGui: cache the text attributes in DockTextField to avoid recreating the same identical object each time the textfield is drawn.
Diffstat (limited to 'macosx/DockTextField.h')
-rw-r--r--macosx/DockTextField.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/DockTextField.h b/macosx/DockTextField.h
index ea9342bc4..cca7bd074 100644
--- a/macosx/DockTextField.h
+++ b/macosx/DockTextField.h
@@ -8,10 +8,10 @@
@interface DockTextField : NSTextField
-@property (nonatomic,strong) NSString *textToDisplay;
-@property (nonatomic,strong) NSColor *startColor;
-@property (nonatomic,strong) NSColor *endColor;
+@property (nonatomic, copy) NSString *textToDisplay;
+@property (nonatomic, copy) NSColor *startColor;
+@property (nonatomic, copy) NSColor *endColor;
-- (void)changeGradientColors:(NSColor*)startColor endColor:(NSColor*)endColor;
+- (void)changeGradientColors:(NSColor *)startColor endColor:(NSColor *)endColor;
@end