mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 02:22:28 +00:00
Using non-deprecated NSMenu allocations
This commit is contained in:
@@ -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:@""];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user