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?
It took me a while to track down how to accomplish this in my own app.
According to Apple's info.plist keys reference:
NSUserNotificationAlertStyle Specifies whether the notification style should be banners, alerts, or none. The default value is banners, which is the recommended style.
In your case you need to define the key NSUserNotificationAlertStyle in info.plist with the value alert.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With