[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-[NSUserDefault setObject: forKey:] behaviour is different in Mac OS X a
From: |
andre levy |
Subject: |
-[NSUserDefault setObject: forKey:] behaviour is different in Mac OS X and GNUstep |
Date: |
Fri, 15 Oct 2004 16:19:49 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 |
under GNUstep [NSUSerDefaults setObject:nil forKey:@"Foo"] raises an
exception.
Under Mac OS X it does not raise and subsequent calls to objectForKey
return nil.
Cocoa documentation says:
- (void)setObject:(id)value forKey:(NSString *)defaultName
Sets the value of the default identified by defaultName in the standard
application domain. Setting a default has no effect on the value
returned by the objectForKey: method if the same key exists in a domain
that precedes the application domain in the search list.
(No mentions are made of exceptions)
--andre
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- -[NSUserDefault setObject: forKey:] behaviour is different in Mac OS X and GNUstep,
andre levy <=