FROM : John Brownlow
DATE : Fri Apr 08 21:24:32 2005
Probably worth obscuring it *slightly*...
EG encode it as data and call the key
@"myDefaultSplineReticulationFactor" or something...
(yes, that's a Maxis joke)
On Apr 8, 2005, at 3:16 PM, Power Mac User wrote:
> Hello!
>
> Perhaps you can use NSUserDefaults.
>
> #define YOUREXPIRATIONPERIOD // NSTimeInterval which is a double
>
> + (void)initialize
> {
> NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];
>
> [defaultValues setObject:[NSDate date] forKey:@"AppInstallationDate"];
> [[NSUserDefaults standardUserDefaults]
> registerDefaults:defaultValues];
> }
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
DATE : Fri Apr 08 21:24:32 2005
Probably worth obscuring it *slightly*...
EG encode it as data and call the key
@"myDefaultSplineReticulationFactor" or something...
(yes, that's a Maxis joke)
On Apr 8, 2005, at 3:16 PM, Power Mac User wrote:
> Hello!
>
> Perhaps you can use NSUserDefaults.
>
> #define YOUREXPIRATIONPERIOD // NSTimeInterval which is a double
>
> + (void)initialize
> {
> NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];
>
> [defaultValues setObject:[NSDate date] forKey:@"AppInstallationDate"];
> [[NSUserDefaults standardUserDefaults]
> registerDefaults:defaultValues];
> }
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
| Related mails | Author | Date |
|---|---|---|
| Power Mac User | Apr 8, 21:16 | |
| John Brownlow | Apr 8, 21:24 | |
| Lon Varscsak | Apr 8, 21:31 |






Cocoa mail archive

