([Port -invalidate]): Post PortBecameInvalidNotification.

(PortBecameInvalidNotification): New String object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1037 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-03-03 00:36:53 +00:00
parent f48fa64139
commit 844e785f3c

View file

@ -23,6 +23,7 @@
#include <objects/Port.h>
#include <objects/Coder.h> /* for Coding protocol in Object category */
#include <objects/Notification.h>
@implementation Port
@ -64,7 +65,13 @@
- (void) invalidate
{
is_valid = NO;
if (is_valid)
{
[NotificationDispatcher
postNotificationName: PortBecameInvalidNotification
object: self];
is_valid = NO;
}
}
- (Class) packetClass
@ -156,3 +163,5 @@
}
@end
NSString *PortBecameInvalidNotification = @"PortBecameInvalidNotification";