00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #import <Foundation/Foundation.h>
00023
00032 @interface DAPreferences : NSObject {
00033 NSMutableDictionary * prefs;
00034 NSString * path;
00035 BOOL dirty;
00036 }
00037
00043 - (id) initWithDictionary: (NSDictionary *) initial forPath: (NSString *) fullPath;
00049 - (id) initWithPath: (NSString *) fullPath;
00055 - (id) initWithDefaults: (NSDictionary *) initial;
00056
00059 - (void) flushToFile;
00060
00066 - (int) integerForKey: (NSString *) aKey;
00071 - (void) setInteger: (int) anInt forKey: (NSString *) aKey;
00077 - (id) objectForKey: (NSString *) aKey;
00082 - (void) setObject: (id) value forKey: (NSString *) aKey;
00088 - (BOOL) boolForKey: (NSString *) aKey;
00093 - (void) setBool: (BOOL) aBool forKey: (NSString *) aKey;
00099 - (NSData *) dataForKey: (NSString *) aKey;
00105 - (NSString *) stringForKey: (NSString *) aKey;
00106
00110 - (void) removeObjectForKey: (NSString *) aKey;
00111
00112 @end