mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
e55c09f42c
commit
2999ea826d
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…
Add table
Add a link
Reference in a new issue