Minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-09-30 20:31:15 +00:00
parent 7d457ce4cc
commit d8432fad48
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2011-09-29 julian <julian@corecode.at>
* Source/NSBundle.m: ([objectForInfoDictionaryKey:])
Add missing one-line implementation.
2011-09-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNumberFormatter.m: Check for _C_BOOL definition.
2011-09-07 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSUserDefaults.m:

View file

@ -2099,7 +2099,7 @@ IF_NO_GC(
- (id) objectForInfoDictionaryKey: (NSString *)key
{
return nil;
return [[self infoDictionary] objectForKey: key];
}
- (NSString*) developmentLocalization

View file

@ -1105,9 +1105,11 @@ static NSUInteger _defaultBehavior = NSNumberFormatterBehavior10_4;
* don't think it matters, because we don't bother with anything
* smaller than int for NSNumbers
*/
#if defined(_C_BOOL)
case _C_BOOL:
STRING_FROM_NUMBER(unum_format, (int)[anObject boolValue]);
break;
#endif
/* If it's not a type encoding that we recognise, let the receiver
* cast it to a double, which probably has enough precision for what
* we need. This needs testing with NSDecimalNumber though, because