([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:
mccallum 1996-03-03 00:36:53 +00:00
parent e55c09f42c
commit 2999ea826d

View file

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