aboutsummaryrefslogtreecommitdiffstats
path: root/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h
diff options
context:
space:
mode:
authormattlangtree <matt@northofthree.com>2008-08-30 16:29:57 +0000
committermattlangtree <matt@northofthree.com>2008-08-30 16:29:57 +0000
commit3346039f0a92087d9c45cc8b20ff99fb95f85c38 (patch)
treecddb09046c01f9be2422039fc1d9fcbc508311d0 /Sparkle.framework/Versions/A/Headers/SUUserDefaults.h
parent7991997ee4ec10eb4fced5fe054b4af9b11f3b3f (diff)
downloadsequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.tar.gz
sequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.tar.bz2
sequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.zip
#1 - Add Software Update checking
- Added Sparkle.Framework to Project. - Added SUFeedURL key in Info.plist (set to http://sequelpro.com/appcast/app-releases.xml) - Updated "Check for Updates..." menu item in MainMenu.xib to now point to SparkleFramework updater
Diffstat (limited to 'Sparkle.framework/Versions/A/Headers/SUUserDefaults.h')
-rw-r--r--Sparkle.framework/Versions/A/Headers/SUUserDefaults.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h b/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h
new file mode 100644
index 00000000..ba2eedb2
--- /dev/null
+++ b/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