NSUserNotification: action buttons don't work unless notifications are
| Originator: | radexpl | ||
| Number: | rdar://18779780 | Date Originated: | |
| Status: | Duplicate/18734356 | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary: NSUserNotification provides some API to add "action buttons", or additional actions to the notification (other than dismissing or clicking on it) — hasActionButton, actionButtonTitle, otherButtonTitle, and, new in Yosemite, additionalActions. These are great except for the fact that they only work if the user explicitly changes the app's notifications type to Alert in System Preferences. They don't work with "banners". In contrast to the above, the new `hasReplyButton` property work beautifully with plain old notifications — the "Reply" button simply appears when the user mouses over the notification. It would be great if custom action buttons worked the same way — appeared on mouse over in "banners" mode. Steps to Reproduce: 1. Make an NSUserNotification object, set hasActionButton to YES, and add some extra actions using actionButtonTitle, otherButtonTitle, and/or additionalActions. 2. Deliver it to NSUserNotificationCenter Expected Results: Buttons appear even if app's notifications are banners, not alerts; perhaps only when the mouse rolls over (like with the Reply button) Actual Results: Only the message appears :( Version: 10.10; Xcode 6.1
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!