* 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

@ -1,12 +1,18 @@
2013-01-13 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Foundation/NSDistributedNotificationCenter.h,
* Source/NSDistributedNotificationCenter.m: Correct the return
types of the factory methods.
2013-01-08 Richard Frith-Macdonald <rfm@gnu.org>
* 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 <greg.casamento@gmail.com>
* Headers/Foundation/NSMetadata.h: Add _ to delegate.

View file

@ -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

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)
{