From f938f6136142574461346ef8e356a516ac318510 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sat, 22 Apr 2017 21:36:12 +1000 Subject: Use simple alloc as "memory zones are no longer used by Objective-C" according to Apple's API Reference. --- cocoa/InfoBar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 01e2ce49c..945d3515e 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -154,7 +154,7 @@ static float BarFontSize = 10.0; unsigned numberOfDefaultItems = sizeof(DefaultScaleMenuLabels) / sizeof(NSString *); // Create the popup button. - mZoomPopup = [[NSPopUpButton allocWithZone:[self zone]] initWithFrame: NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown: NO]; + mZoomPopup = [[NSPopUpButton alloc] initWithFrame: NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown: NO]; // No border or background please. [[mZoomPopup cell] setBordered: NO]; -- cgit v1.2.3