Main Page | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

DAPreferences.h

00001 //
00002 //  DAPreferences.h
00003 //  DownAndOutª
00004 //
00005 //  Created by Fritz Anderson on Wed Aug 27 2003.
00006 //  Copyright (c) 2003 Trustees of the University of Chicago. All rights reserved.
00007 //  This program is free software; you can redistribute it and/or modify
00008 //  it under the terms of the GNU General Public License as published by
00009 //  the Free Software Foundation; either version 2 of the License, or
00010 //  (at your option) any later version.
00011 //  
00012 //  This program is distributed in the hope that it will be useful,
00013 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 //  GNU General Public License for more details.
00016 //  
00017 //  You should have received a copy of the GNU General Public License
00018 //  along with this program; if not, write to the Free Software
00019 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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

Generated on Wed Jan 25 12:04:27 2006 for DownAndOut by  doxygen 1.4.4