Use a temporary app object and database lock to avoid saving while the database is not in a consistent state

This commit is contained in:
Cameron Gutman
2015-09-30 20:34:52 -07:00
parent 695499dea9
commit b6445295a7
7 changed files with 101 additions and 28 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
#import "AppDelegate.h"
#import "Host.h"
#import "App.h"
#import "TemporaryApp.h"
@interface DataManager : NSObject
@@ -22,7 +23,7 @@
- (void) saveData;
- (Host*) createHost;
- (void) removeHost:(Host*)host;
- (App*) createApp;
- (void) removeApp:(App*)app;
- (App*) addAppFromTemporaryApp:(TemporaryApp*)tempApp;
- (void) removeAppFromHost:(App*)app;
@end