diff options
author | stuconnolly <stuart02@gmail.com> | 2008-12-10 16:52:52 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2008-12-10 16:52:52 +0000 |
commit | fab9a6506cd04ec8f840c98772a80c44a79c74a7 (patch) | |
tree | 3cd483487bef381c934717f10df71d306c7eaf97 /Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h | |
parent | 4c3b208fad0572d8d1a79bba1bd1b8147fd0f8a6 (diff) | |
download | sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.gz sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.bz2 sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.zip |
MERGED r262:266 from branches/stuart02 to trunk to include new project structure.
Diffstat (limited to 'Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h')
-rw-r--r-- | Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h b/Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h new file mode 100644 index 00000000..ba2eedb2 --- /dev/null +++ b/Frameworks/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h @@ -0,0 +1,41 @@ +// +// SUUserDefaults.h +// Sparkle +// +// Created by Andy Matuschak on 12/21/07. +// Copyright 2007 Andy Matuschak. All rights reserved. +// + +#ifndef SUUSERDEFAULTS_H +#define SUUSERDEFAULTS_H + +/*! + @class + @abstract A substitute for NSUserDefaults that will work with arbitrary bundle identifiers. + @discussion Make sure you call -setIdentifier: before using SUUserDefaults. The other methods in this class work just like those in NSUserDefaults. +*/ + +@interface SUUserDefaults : NSObject { + NSString *identifier; +} + +/*! + @method + @abstract Returns a singleton instance of the user defaults class. +*/ ++ (SUUserDefaults *)standardUserDefaults; + +/*! + @method + @abstract Sets which bundle identifier to use when setting and retrieving defaults. + @discussion It is imperative that you set the identifier through this method before trying to set or retrieve defaults. +*/ +- (void)setIdentifier:(NSString *)identifier; + +- (id)objectForKey:(NSString *)defaultName; +- (void)setObject:(id)value forKey:(NSString *)defaultName; +- (BOOL)boolForKey:(NSString *)defaultName; +- (void)setBool:(BOOL)value forKey:(NSString *)defaultName; +@end + +#endif |