From 7c8b9cf05a52ad299e0a5cec5cc5040a305b39c8 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 20 Feb 2022 18:59:38 +0200 Subject: [PATCH] Less hacky, less buggy --- Cocoa/GBImageView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cocoa/GBImageView.m b/Cocoa/GBImageView.m index 406a0ec..a9b88b6 100644 --- a/Cocoa/GBImageView.m +++ b/Cocoa/GBImageView.m @@ -90,9 +90,9 @@ return self; } -- (void)setImage:(NSImage *)image +-(void)viewWillDraw { - [super setImage:image]; + [super viewWillDraw]; for (CALayer *layer in self.layer.sublayers) { layer.magnificationFilter = kCAFilterNearest; }