From 3ee40a10b123c36be3e29602767840a7a71aaafa Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Mon, 5 Jun 2017 10:47:34 +0200 Subject: Fix up cocoa frontend. - Convert to ARC - Fix crash due to endless responder chain recursion - Update makefile to find openssl installed via home-brew - Fix most compiler warnings --- frontends/cocoa/ArrowBox.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/cocoa/ArrowBox.m') diff --git a/frontends/cocoa/ArrowBox.m b/frontends/cocoa/ArrowBox.m index 6605fcca9..3eb7411a2 100644 --- a/frontends/cocoa/ArrowBox.m +++ b/frontends/cocoa/ArrowBox.m @@ -85,12 +85,12 @@ NSBezierPath *path = [NSBezierPath bezierPath]; - NSRect bounds = [self convertRectToBase: NSInsetRect( [self bounds], 2, 2 )]; + NSRect bounds = [self.window convertRectToScreen: NSInsetRect( [self bounds], 2, 2 )]; bounds.origin.x = floor( bounds.origin.x ); bounds.origin.y = floor( bounds.origin.y ); bounds.size.width = floor( bounds.size.width ); bounds.size.height = floor( bounds.size.height ); - bounds = [self convertRectFromBase: bounds]; + bounds = [self.window convertRectFromScreen: bounds]; const CGFloat right = bounds.size.width - arrowSize; const CGFloat top = bounds.size.height - arrowSize; -- cgit v1.2.3