use property instead of setter

This commit is contained in:
Michael Starke
2019-07-03 12:47:28 +02:00
parent 38e61b96a5
commit 176a3b7db4

View File

@@ -30,7 +30,7 @@
if(self) {
self.focusRingType = NSFocusRingTypeNone;
self.bezelStyle = NSTexturedRoundedBezelStyle;
[self.cell setImageScaling:NSImageScaleProportionallyDown];
((NSButtonCell *)(self.cell)).imageScaling = NSImageScaleProportionallyDown;
[self setButtonType:NSMomentaryPushInButton];
self.imagePosition = NSImageOnly;
}