Instance Method

enqueueNotification:postingStyle:

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

Declaration

- (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle;

Parameters

notification

The notification to add to the queue.

postingStyle

The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.

Discussion

This is a convenience method for calling enqueueNotification:postingStyle:coalesceMask:forModes: with coalescing criteria that will coalesce only notifications that match both the notification’s name and object and the runloop mode NSDefaultRunLoopMode.

See Also

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.

- dequeueNotificationsMatching:coalesceMask:

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software