mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-19 10:49:24 +00:00
Refactored Notification setup to use only the document as object
This commit is contained in:
@@ -107,8 +107,7 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
|
||||
[self _updateBindings:nil];
|
||||
}
|
||||
|
||||
- (void)setupNotifications:(NSWindowController *)windowController {
|
||||
MPDocument *document = [windowController document];
|
||||
- (void)regsiterNotificationsForDocument:(MPDocument *)document {
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(_didChangeCurrentItem:)
|
||||
name:MPCurrentItemChangedNotification
|
||||
|
||||
Reference in New Issue
Block a user