Skip navigation.
 
mlRe: MacOSX-dev Digest, Vol 16, Issue 10
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

Related mailsAuthorDate
mlRe: MacOSX-dev Digest, Vol 16, Issue 10 Power Mac User Apr 8, 21:16
mlRe: MacOSX-dev Digest, Vol 16, Issue 10 John Brownlow Apr 8, 21:24
mlRe: MacOSX-dev Digest, Vol 16, Issue 10 Lon Varscsak Apr 8, 21:31