diff --git a/MacPass/MPActionHelper.m b/MacPass/MPActionHelper.m index 18711830..791de86d 100644 --- a/MacPass/MPActionHelper.m +++ b/MacPass/MPActionHelper.m @@ -23,7 +23,7 @@ @(MPActionAddGroup): NSStringFromSelector(@selector(createGroup:)), @(MPActionDuplicateEntry): NSStringFromSelector(@selector(duplicateEntry:)), @(MPActionDuplicateEntryWithOptions): NSStringFromSelector(@selector(duplicateEntryWithOptions:)), - @(MPActionReverToHistoryEntry): NSStringFromSelector(@selector(revertToHistoryEntry::)), + @(MPActionReverToHistoryEntry): NSStringFromSelector(@selector(revertToHistoryEntry:)), @(MPActionCopyPassword): NSStringFromSelector(@selector(copyPassword:)), @(MPActionCopyURL): NSStringFromSelector(@selector(copyURL:)), @(MPActionCopyUsername): NSStringFromSelector(@selector(copyUsername:)), diff --git a/MacPass/MPOutlineViewController.m b/MacPass/MPOutlineViewController.m index 65d40402..33f8a84e 100644 --- a/MacPass/MPOutlineViewController.m +++ b/MacPass/MPOutlineViewController.m @@ -180,7 +180,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell"; #pragma mark Notifications - (void)regsiterNotificationsForDocument:(MPDocument *)document { - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didAddGroup:) name:MPDocumentDidAddGroupNotification object:document]; + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_didAddGroup:) name:MPDocumentDidAddGroupNotification object:document]; } - (void)clearSelection { @@ -190,7 +190,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell"; } - (void)_didBecomeFirstResponder:(NSNotification *)notification { - if( [notification object] != self.outlineView ) { + if( notification.object != self.outlineView ) { return; // Nothing we need to worry about } MPDocument *document = self.windowController.document;