mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
* 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:
parent
fd9e1db26c
commit
04b9c720ba
3 changed files with 13 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue