diff --git a/ChangeLog b/ChangeLog index 458b96117..49c8ccd49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-09-29 julian + + * Source/NSBundle.m: ([objectForInfoDictionaryKey:]) + Add missing one-line implementation. + +2011-09-29 Richard Frith-Macdonald + + * Source/NSNumberFormatter.m: Check for _C_BOOL definition. + 2011-09-07 Eric Wasylishen * Source/NSUserDefaults.m: diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 0ff52ae07..6441dafd0 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -2099,7 +2099,7 @@ IF_NO_GC( - (id) objectForInfoDictionaryKey: (NSString *)key { - return nil; + return [[self infoDictionary] objectForKey: key]; } - (NSString*) developmentLocalization diff --git a/Source/NSNumberFormatter.m b/Source/NSNumberFormatter.m index bba30aeb2..4598f2e86 100644 --- a/Source/NSNumberFormatter.m +++ b/Source/NSNumberFormatter.m @@ -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