diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-04-22 21:36:12 +1000 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-04-22 21:36:12 +1000 |
| commit | f938f6136142574461346ef8e356a516ac318510 (patch) | |
| tree | a9fabc5f89f4586ab1a1c7c1fcf8849ca37abbf8 | |
| parent | 1eeadce64ec9d786c1da10e98f188a3221b7373b (diff) | |
| download | scintilla-mirror-f938f6136142574461346ef8e356a516ac318510.tar.gz | |
Use simple alloc as "memory zones are no longer used by Objective-C"
according to Apple's API Reference.
| -rw-r--r-- | cocoa/InfoBar.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |
