Refactored unlocking to be done via notifications not direct calls to enable background unlocking by keepasshttp

This commit is contained in:
michael starke
2013-10-21 01:09:14 +02:00
parent 5711f82d13
commit 89105c6e90
9 changed files with 105 additions and 478 deletions

View File

@@ -79,6 +79,7 @@ typedef NS_ENUM(NSUInteger, MPAlertContext) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didRevertDocument:) name:MPDocumentDidRevertNotifiation object:[self document]];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showEntries) name:MPDocumentDidUnlockDatabaseNotification object:[self document]];
[_entryViewController setupNotifications:self];
[_inspectorViewController setupNotifications:self];