interims update

This commit is contained in:
michael starke
2012-07-22 23:28:44 +02:00
parent 5687494582
commit 957b91cceb
9 changed files with 353 additions and 781 deletions

View File

@@ -9,6 +9,8 @@
#import "MPDatabaseDocument.h"
#import "KdbLib.h"
NSString *const MPDidLoadDataBaseNotification = @"DidLoadDataBaseNotification";
@interface MPDatabaseDocument ()
@property (retain) KdbTree *tree;
@end
@@ -42,6 +44,11 @@
@catch (NSException *exception) {
// ignore
}
if( _tree != nil) {
// Post notification that a new document was loaded
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter postNotificationName:MPDidLoadDataBaseNotification object:self];
}
}
return self;
}