home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / machkit / NXInvalidationNotifier.h < prev    next >
Text File  |  1992-03-03  |  857b  |  36 lines

  1. /*
  2.  * NXInvalidationNotifier
  3.  * allow objects to register themselves for a senderIsInvalid message
  4.  * Notification is triggered by sending "invalidate" to this object
  5.  * Copyright 1991, NeXT Computer, Inc.
  6.  */
  7.  
  8. #import <objc/List.h>
  9. #import <machkit/reference.h>
  10. #import <machkit/senderIsInvalid.h>
  11. #import <machkit/NXLock.h>
  12.  
  13. @interface NXInvalidationNotifier : Object <NXReference> {
  14. @protected
  15.     unsigned    refcount;
  16.     BOOL        isValid;
  17.     NXLock        *listGate;
  18.     List        *funeralList;
  19. }
  20.  
  21. - init;
  22. - deallocate;
  23.  
  24. - invalidate;
  25. - (BOOL) isValid;
  26.  
  27. // The target of this message will arrange to send "senderIsInvalid"
  28. // when, indeed, the target is about to die (is invalidated).
  29.  
  30. - registerForInvalidationNotification:(id <NXSenderIsInvalid>)anObject;
  31.  
  32. // cancel the request for notification
  33. - unregisterForInvalidationNotification:(id <NXSenderIsInvalid>)anObject;
  34.  
  35. @end
  36.