Name

NSNotificationQueue — Mac OS X 10.0

Synopsis

This class acts as a buffer for notification centers. Notification queues can be used to allow greater control over the timing of notifications and how they are posted to the notification center. Each thread has its own notification queue, which is associated with the default notification center. For more information about the notification system, see Chapter 2.

image with no caption

@interface NSNotificationQueue : NSObject
                                  // Initializers
   - (id)initWithNotificationCenter:(NSNotificationCenter *)notificationCenter;
                                  // Class Methods
   + (NSNotificationQueue *)defaultQueue;
                                  // Instance Methods
   - (void)dequeueNotificationsMatching:(NSNotification *)notification 
                                 coalesceMask:(unsigned)coalesceMask;
   - (void)enqueueNotification:(NSNotification *)notification 
                                 postingStyle:(NSPostingStyle)postingStyle;
   - (void)enqueueNotification:(NSNotification *)notification 
                                 postingStyle:(NSPostingStyle)postingStyle
                                 coalesceMask:(unsigned)coalesceMask 
                                 forModes:(NSArray *)modes;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.