mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
([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:
parent
f48fa64139
commit
844e785f3c
1 changed files with 10 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue