Keys used in a user notification’s description dictionary, which describes the contents of the notification dialog to display.
- Core Foundation
The button title keys must be given in right-to-left order—you therefore must use the
k constant for the rightmost button even if it is conceptually not a "default" button (for example, if you want a single "Cancel" button that should not have color, should not pulse, and should not have return for a key equivalent). If, however, you set the
k, the rightmost button does not behave as a default button (although it will still be the "default" button in the sense of using
k). The following code fragment shows how you can create a notification that contains a single "Cancel" button that does not behave as a default button.
If you set the
k flag and do not specify a value for
k, the notification will have no buttons.