trivial tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39423 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-02-29 09:41:14 +00:00
parent fbee572507
commit 3f98e43dba
2 changed files with 7 additions and 1 deletions

View file

@ -603,6 +603,11 @@ GS_ROOT_CLASS @interface GSDistantObjectPlaceHolder
@"You should request NSConnectionDidDieNotification's and\n"
@"release all references to the proxy's of invalid Connections."];
/* We could be released while the connection is forwarding, so we need
* to retain self. But, the remote end couild raise an exception, so
* we can't rely on being able to release again; use autorelease.
*/
AUTORELEASE(RETAIN(self));
[_connection forwardInvocation: anInvocation forProxy: self];
}

View file

@ -38,7 +38,8 @@
#import "Foundation/NSString.h"
#import "Foundation/NSTimeZone.h"
NSString * const NSUserNotificationDefaultSoundName = @"NSUserNotificationDefaultSoundName";
NSString * const NSUserNotificationDefaultSoundName
= @"NSUserNotificationDefaultSoundName";
@interface NSUserNotification ()
@property (readwrite) NSDate *actualDeliveryDate;