* Headers/Foundation/NSDistributedNotificationCenter.h,

* Source/NSDistributedNotificationCenter.m: Correct the return
  types of the factory methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35960 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-01-13 16:59:49 +00:00
parent fd9e1db26c
commit 04b9c720ba
3 changed files with 13 additions and 7 deletions

View file

@ -118,7 +118,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
* equivalent to calling +notificationCenterForType: with
* <code>NSLocalNotificationCenterType</code> 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.<br />
* MacOS-X supports only <code>NSLocalNotificationCenterType</code>.
*/
+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type
+ (NSDistributedNotificationCenter*) notificationCenterForType: (NSString*)type
{
if ([type isEqual: NSLocalNotificationCenterType] == YES)
{