mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
12
ChangeLog
12
ChangeLog
|
@ -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>
|
2013-01-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSString.m:
|
* Source/GSString.m:
|
||||||
When creating a substring (A) of a substring (B) or a string (C),
|
When creating a substring (C) of a substring (B) or a string (A),
|
||||||
we now retain the (C) in (A) rather than having (C) retain (B)
|
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
|
which in turn retains (A). This has the advantage that it is
|
||||||
possible for the intermediate (B) to be released if nothing else
|
possible for the intermediate (B) to be released if nothing else
|
||||||
ues it.
|
ues it.
|
||||||
|
|
||||||
2013-01-05 00:49-EST Gregory John Casamento <greg.casamento@gmail.com>
|
2013-01-05 00:49-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Headers/Foundation/NSMetadata.h: Add _ to delegate.
|
* Headers/Foundation/NSMetadata.h: Add _ to delegate.
|
||||||
|
|
|
@ -96,8 +96,8 @@ GS_EXPORT NSString* const GSNetworkNotificationCenterType;
|
||||||
@private id _internal GS_UNUSED_IVAR;
|
@private id _internal GS_UNUSED_IVAR;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
+ (NSNotificationCenter*) defaultCenter;
|
+ (id) defaultCenter;
|
||||||
+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type;
|
+ (NSDistributedNotificationCenter*) notificationCenterForType: (NSString*)type;
|
||||||
|
|
||||||
- (void) addObserver: (id)anObserver
|
- (void) addObserver: (id)anObserver
|
||||||
selector: (SEL)aSelector
|
selector: (SEL)aSelector
|
||||||
|
|
|
@ -118,7 +118,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
||||||
* equivalent to calling +notificationCenterForType: with
|
* equivalent to calling +notificationCenterForType: with
|
||||||
* <code>NSLocalNotificationCenterType</code> as its argument.
|
* <code>NSLocalNotificationCenterType</code> as its argument.
|
||||||
*/
|
*/
|
||||||
+ (NSNotificationCenter*) defaultCenter
|
+ (id) defaultCenter
|
||||||
{
|
{
|
||||||
return [self notificationCenterForType: NSLocalNotificationCenterType];
|
return [self notificationCenterForType: NSLocalNotificationCenterType];
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
||||||
* a notification center used by processes on the local network.<br />
|
* a notification center used by processes on the local network.<br />
|
||||||
* MacOS-X supports only <code>NSLocalNotificationCenterType</code>.
|
* MacOS-X supports only <code>NSLocalNotificationCenterType</code>.
|
||||||
*/
|
*/
|
||||||
+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type
|
+ (NSDistributedNotificationCenter*) notificationCenterForType: (NSString*)type
|
||||||
{
|
{
|
||||||
if ([type isEqual: NSLocalNotificationCenterType] == YES)
|
if ([type isEqual: NSLocalNotificationCenterType] == YES)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue