O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required