Adding shortcut to NSAlert buttons

Is it possible to add shortcuts (key equivalent) to buttons in an NSAlert?
Or do I have te create my custom alert?



NSAlert has a buttons method, which returns an array of the available buttons.
Use the appropriate NSButton methods to change the key equivalent

Thanks StefanK. This was just the push I needed.
It works very well.
I have now a function which is very flexible.

showModalAlertWithMessage_infotext_buttons_equivalents_(message, infotext, buttonsList, equivalents)

Thanks again.