Minor macos-x compatibility tweak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25547 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-10-31 11:24:30 +00:00
parent 1a4a9c6613
commit 87edda35d7
3 changed files with 15 additions and 5 deletions

View file

@ -1047,9 +1047,14 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
- (void) setBool: (BOOL)value forKey: (NSString*)defaultName
{
NSNumber *n = [NSNumberClass numberWithBool: value];
[self setObject: n forKey: defaultName];
if (value == YES)
{
[self setObject: @"YES" forKey: defaultName];
}
else
{
[self setObject: @"NO" forKey: defaultName];
}
}
- (void) setFloat: (float)value forKey: (NSString*)defaultName