Use NSView’s designated initializer

This commit is contained in:
Bi11 committed 2017-01-13 20:33:41 +08:00
1 parent e2426784ac
commit 65bd11df8a
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@
if (!(self = [super init]))
return self;
NSView *buttonGroup = [NSView new];
NSView *buttonGroup = [[NSView alloc] initWithFrame:NSZeroRect];
self.view = buttonGroup;
NSMutableArray<NSLayoutConstraint *> *constraints = [NSMutableArray array];
NSMutableArray<NSButton *> *buttonCopies = [NSMutableArray arrayWithCapacity:buttons.count];