Creates a notification with information and an immediate-delivery specifier, and posts it to the receiver.
- macOS 10.0+
Name of the notification to post. Must not be
Sender of the notification. May be
Dictionary containing additional information. May be
Specifies when to deliver the notification. When
false, the receiver delivers notifications to their observers according to the suspended-notification behavior specified in the corresponding dispatch table entry. When
true, the receiver delivers the notification immediately to its observers.
This is the preferred method for posting notifications.
notification dictionary is serialized as a property list, so it can be passed to another task. In the receiving task, it is deserialized back into a dictionary. This serialization imposes some restrictions on the objects that can be placed in the
notification dictionary. See XML Property Lists for details.