home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / Foundation.framework / Versions / B / Headers / NSNotificationQueue.h < prev    next >
Encoding:
Text File  |  1996-10-25  |  1.2 KB  |  43 lines

  1. /*    NSNotificationQueue.h
  2.     Queues up notifications and posts them to the attached notificationCenter when needed.
  3.     Copyright 1994-1996, NeXT Software, Inc.  All rights reserved.
  4. */
  5.  
  6. #import <Foundation/NSObject.h>
  7.  
  8. @class NSNotification, NSNotificationCenter, NSArray;
  9.  
  10. typedef enum {
  11.     NSPostWhenIdle = 1,
  12.     NSPostASAP = 2,
  13.     NSPostNow = 3
  14. } NSPostingStyle;
  15.  
  16. typedef enum {
  17.     NSNotificationNoCoalescing = 0,
  18.     NSNotificationCoalescingOnName = 1,
  19.     NSNotificationCoalescingOnSender = 2,
  20. } NSNotificationCoalescing;
  21.  
  22. @interface NSNotificationQueue:NSObject {
  23.     NSNotificationCenter    *_notificationCenter;
  24.     id        _asapQueue;
  25.     id        _idleQueue;
  26.     BOOL    _attached;
  27.     void    *_reserved;
  28. }
  29.  
  30. + (NSNotificationQueue *)defaultQueue;
  31.  
  32. - (id)initWithNotificationCenter:(NSNotificationCenter *)notificationCenter;
  33.  
  34. - (id)init;
  35.  
  36. - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle coalesceMask:(unsigned)coalesceMask forModes:(NSArray *)modes;
  37.  
  38. - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle;
  39.  
  40. - (void)dequeueNotificationsMatching:(NSNotification *)notification coalesceMask:(unsigned)coalesceMask;
  41.  
  42. @end
  43.