diff --git a/ChangeLog b/ChangeLog index 8cfc31980..f4db0222c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,18 @@ +2013-01-13 Fred Kiefer + + * Headers/Foundation/NSDistributedNotificationCenter.h, + * Source/NSDistributedNotificationCenter.m: Correct the return + types of the factory methods. + 2013-01-08 Richard Frith-Macdonald * Source/GSString.m: - When creating a substring (A) of a substring (B) or a string (C), - we now retain the (C) in (A) rather than having (C) retain (B) + When creating a substring (C) of a substring (B) or a string (A), + we now retain the (A) in (C) rather than having (C) retain (B) which in turn retains (A). This has the advantage that it is possible for the intermediate (B) to be released if nothing else ues it. - + 2013-01-05 00:49-EST Gregory John Casamento * Headers/Foundation/NSMetadata.h: Add _ to delegate. diff --git a/Headers/Foundation/NSDistributedNotificationCenter.h b/Headers/Foundation/NSDistributedNotificationCenter.h index 8585d9f57..1dca4ab04 100644 --- a/Headers/Foundation/NSDistributedNotificationCenter.h +++ b/Headers/Foundation/NSDistributedNotificationCenter.h @@ -96,8 +96,8 @@ GS_EXPORT NSString* const GSNetworkNotificationCenterType; @private id _internal GS_UNUSED_IVAR; #endif } -+ (NSNotificationCenter*) defaultCenter; -+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type; ++ (id) defaultCenter; ++ (NSDistributedNotificationCenter*) notificationCenterForType: (NSString*)type; - (void) addObserver: (id)anObserver selector: (SEL)aSelector diff --git a/Source/NSDistributedNotificationCenter.m b/Source/NSDistributedNotificationCenter.m index 11833894b..3913ba8c1 100644 --- a/Source/NSDistributedNotificationCenter.m +++ b/Source/NSDistributedNotificationCenter.m @@ -118,7 +118,7 @@ static NSDistributedNotificationCenter *netCenter = nil; * equivalent to calling +notificationCenterForType: with * NSLocalNotificationCenterType as its argument. */ -+ (NSNotificationCenter*) defaultCenter ++ (id) defaultCenter { return [self notificationCenterForType: NSLocalNotificationCenterType]; } @@ -135,7 +135,7 @@ static NSDistributedNotificationCenter *netCenter = nil; * a notification center used by processes on the local network.
* MacOS-X supports only NSLocalNotificationCenterType. */ -+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type ++ (NSDistributedNotificationCenter*) notificationCenterForType: (NSString*)type { if ([type isEqual: NSLocalNotificationCenterType] == YES) {