A NSUserNotification only shows the action button if the user sets the style of the notifications for my app to “alerts” in the system preferences. Can I somehow set this style for my application as a default instead of relying on the user to manually select it?
A NSUserNotification only shows the action button if the user sets the style of
Share
It took me a while to track down how to accomplish this in my own app.
According to Apple’s info.plist keys reference:
In your case you need to define the key NSUserNotificationAlertStyle in info.plist with the value alert.