From 2999ea826df197442f97f56fbedec133a27f28a1 Mon Sep 17 00:00:00 2001 From: mccallum Date: Sun, 3 Mar 1996 00:36:53 +0000 Subject: [PATCH] ([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 --- Source/Port.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/Port.m b/Source/Port.m index 6dd2e1419..e31d97f82 100644 --- a/Source/Port.m +++ b/Source/Port.m @@ -23,6 +23,7 @@ #include #include /* for Coding protocol in Object category */ +#include @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";