From 65bd11df8a61aae627cfdaff76cb751a9e1111ea Mon Sep 17 00:00:00 2001 From: Bi11 Date: Fri, 13 Jan 2017 20:33:41 +0800 Subject: [PATCH] =?UTF-8?q?Use=20NSView=E2=80=99s=20designated=20initializ?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sparkle/SUTouchBarButtonGroup.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUTouchBarButtonGroup.m b/Sparkle/SUTouchBarButtonGroup.m index ab02bbd2..3a56046e 100644 --- a/Sparkle/SUTouchBarButtonGroup.m +++ b/Sparkle/SUTouchBarButtonGroup.m @@ -17,7 +17,7 @@ if (!(self = [super init])) return self; - NSView *buttonGroup = [NSView new]; + NSView *buttonGroup = [[NSView alloc] initWithFrame:NSZeroRect]; self.view = buttonGroup; NSMutableArray *constraints = [NSMutableArray array]; NSMutableArray *buttonCopies = [NSMutableArray arrayWithCapacity:buttons.count];