mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 01:12:31 +00:00
Fixed notification for outline view to just subscribe to single instances not all notifications as we are now dealing with multiple windows.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#import "MPEntryViewController.h"
|
#import "MPEntryViewController.h"
|
||||||
#import "MPAppDelegate.h"
|
#import "MPAppDelegate.h"
|
||||||
#import "MPOutlineViewDelegate.h"
|
#import "MPOutlineViewDelegate.h"
|
||||||
|
#import "MPOutlineViewController.h"
|
||||||
#import "MPDocument.h"
|
#import "MPDocument.h"
|
||||||
#import "MPIconHelper.h"
|
#import "MPIconHelper.h"
|
||||||
#import "MPDocumentWindowController.h"
|
#import "MPDocumentWindowController.h"
|
||||||
@@ -108,12 +109,7 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
|||||||
_toggleFilterURLButton : @(MPFilterUrls)
|
_toggleFilterURLButton : @(MPFilterUrls)
|
||||||
} retain];
|
} retain];
|
||||||
_entryArrayController = [[NSArrayController alloc] init];
|
_entryArrayController = [[NSArrayController alloc] init];
|
||||||
_selectedEntry = nil;
|
_selectedEntry = nil;
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
||||||
selector:@selector(_didChangeGroupSelectionInOutlineView:)
|
|
||||||
name:MPOutlineViewDidChangeGroupSelection
|
|
||||||
object:nil];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@@ -131,6 +127,13 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
|||||||
[self.view setWantsLayer:YES];
|
[self.view setWantsLayer:YES];
|
||||||
[self _hideStatusBarAnimated:NO];
|
[self _hideStatusBarAnimated:NO];
|
||||||
|
|
||||||
|
MPDocumentWindowController *windowController = [self windowController];
|
||||||
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||||
|
selector:@selector(_didChangeGroupSelectionInOutlineView:)
|
||||||
|
name:MPOutlineViewDidChangeGroupSelection
|
||||||
|
object:windowController.outlineViewController.outlineDelegate];
|
||||||
|
|
||||||
|
|
||||||
[self.entryTable setDelegate:self];
|
[self.entryTable setDelegate:self];
|
||||||
[self.entryTable setDoubleAction:@selector(_columnDoubleClick:)];
|
[self.entryTable setDoubleAction:@selector(_columnDoubleClick:)];
|
||||||
[self.entryTable setTarget:self];
|
[self.entryTable setTarget:self];
|
||||||
|
|||||||
@@ -8,8 +8,12 @@
|
|||||||
|
|
||||||
#import "MPViewController.h"
|
#import "MPViewController.h"
|
||||||
|
|
||||||
|
@class MPOutlineViewDelegate;
|
||||||
|
|
||||||
@interface MPOutlineViewController : MPViewController
|
@interface MPOutlineViewController : MPViewController
|
||||||
|
|
||||||
|
@property (retain, readonly) MPOutlineViewDelegate *outlineDelegate;
|
||||||
|
|
||||||
- (void)clearSelection;
|
- (void)clearSelection;
|
||||||
- (void)showOutline;
|
- (void)showOutline;
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>666</string>
|
<string>668</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user