Info.plist Key: NSUserNotificationAlertStyle does not work

Originator:kdbdallas
Number:rdar://12632111 Date Originated:04-Nov-2012 10:01 AM
Status:Open Resolved:
Product:MacOS X SDK Product Version:10.8.2
Classification:Serious Bug Reproducible:Always
 
Summary:
According to: https://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW1
 
In order to specify that an app's notifications posted to the notification center use the 'alert' type of notification, that I should add a row to my info.plist with the key: NSUserNotificationAlertStyle and a string value of 'alerts'.
 
However this does not work.

(Nor does 'alert' as recommended to try by asp in the Dev Forums: https://devforums.apple.com/message/751551

Steps to Reproduce:
Create an app that uses the Notification Center on the Mac.
Create and post a notification and notice that it uses the standard alert that shows and then disappears
If you want to use the notification type that shows and stays on screen, according to the documentation you add an 'NSUserNotificationAlertStyle' property to your Info.plist with a value of 'alerts', nor 'alert' as recommended to try according to 'asp' in the Dev Forums.
Notice that it does not change the type of alert that is created.

Expected Results:
The notification type does not change as expected.

Actual Results:
The notification changes as expected.

Regression:

Notes:
According to the Dev Forums: https://devforums.apple.com/message/751551
The Apple user 'asp' said to try the value of 'alert' (without the 's') and said the documentation was wrong, however the value of 'alert' does not work either.

Sample Project Attached

04-Nov-2012 10:01 AM K Dallas Brown:
'NSUserNotificationAlertStyleTest.zip' was successfully uploaded

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!