-
Notifications
You must be signed in to change notification settings - Fork 0
/
PListDb.h
35 lines (22 loc) · 832 Bytes
/
PListDb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// PListDb.h
//
// Licensed by ruralcoder.com under the
// Creative Commons Attribution-ShareAlike 3.0 Unported License
#import <Foundation/Foundation.h>
UIKIT_EXTERN NSString *const NKPListDbDataUpdated;
UIKIT_EXTERN NSString *const NKPListDbDataUpdateFailed;
@interface PListDb : NSObject
@property (nonatomic, readonly) NSMutableDictionary *fields;
@property (nonatomic, readonly) NSString *dbName;
@property (nonatomic, readonly) NSString *absolutePath;
@property (nonatomic, retain) id notificationKey;
- (id) initWithDbName:(id)dbName;
- (void) addObject:(id)object forKey:(id)key;
- (void) addObject:(id)object forKey:(id)key overwrite:(BOOL)overwrite;
- (void) removeObjectWithKey:(id)key;
- (void) removeAllObjects;
- (BOOL) save;
- (BOOL) saveAndNotify:(BOOL)notifyObservers;
- (void) reloadData;
@end