A notification center buffer.


@interface NSNotificationQueue : NSObject


Whereas a notification center distributes notifications when posted, notifications placed into the queue can be delayed until the end of the current pass through the run loop or until the run loop is idle. Duplicate notifications can be coalesced so that only one notification is sent although multiple notifications are posted.

A notification queue maintains notifications in first in, first out (FIFO) order. When a notification moves to the front of the queue, the queue posts it to the notification center, which in turn dispatches the notification to all objects registered as observers.

Every thread has a default notification queue, which is associated with the default notification center for the process. You can create your own notification queues and have multiple queues per center and thread.


Creating Notification Queues

- initWithNotificationCenter:

Initializes and returns a notification queue for the specified notification center.

Getting the Default Queue


Returns the default notification queue for the current thread.

Managing Notifications

- enqueueNotification:postingStyle:coalesceMask:forModes:

Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and run loop mode.

- enqueueNotification:postingStyle:

Adds a notification to the notification queue with a specified posting style.

- dequeueNotificationsMatching:coalesceMask:

Removes all notifications from the queue that match a provided notification using provided matching criteria.



The constants that specify how notifications are coalesced.


The constants that specify when notifications are posted.


Inherits From

See Also



A container for information broadcast through a notification center to all registered observers.


A notification dispatch mechanism that enables the broadcast of information to registered observers.