diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 541083d9..fb6a8d21 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -588,7 +588,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; } - (void)_setupHeaderMenu { - NSMenu *headerMenu = [[NSMenu allocWithZone:[NSMenu menuZone]] init]; + NSMenu *headerMenu = [[NSMenu alloc] init]; [headerMenu addItemWithTitle:NSLocalizedString(@"TITLE", "Menu item to toggle display of title column in entry table") action:NULL keyEquivalent:@""]; [headerMenu addItemWithTitle:NSLocalizedString(@"USERNAME", "Menu item to toggle display of username column in entry table") action:NULL keyEquivalent:@""]; diff --git a/MacPass/MPToolbarDelegate.m b/MacPass/MPToolbarDelegate.m index 6619b63f..83d53ddc 100644 --- a/MacPass/MPToolbarDelegate.m +++ b/MacPass/MPToolbarDelegate.m @@ -145,7 +145,7 @@ NSString *const MPToolbarItemAutotype = @"TOOLBAR_AUTOTYPE"; [button setImage:image]; [button sizeToFit]; - NSMenu *menu = [NSMenu allocWithZone:[NSMenu menuZone]]; + NSMenu *menu = [[NSMenu alloc] init]; [menu addItemWithTitle:NSLocalizedString(@"UNKNOWN_TOOLBAR_ITEM", @"") action:NULL keyEquivalent:@""]; menu.delegate = _entryMenuDelegate; button.contextMenu = menu;