key equivalent's for NSMenuItem's?

Hi

I am setting up multiple menu items, and I’m using rdelmar’s code from this post
http://macscripter.net/viewtopic.php?id=35521, which works a treat.

I have set up push buttons in the custView which when clicked do their job, what i am trying to do is apply a Key Equivalent (short cut) to the button, my attempts to do this
in the attributes inspector have failed, no errors, no result.

Is their something that needs to be added to the code to allow for short cuts to be accessed from the custView ? if so what would it be please?.

cheers

I don’t know if this is possible. The docs say: “A view in a menu item can receive all mouse events as normal, but keyboard events are not supported.”

Ric

thanks Ric

so how are short cut’s applied?, as I already see in the about box short cuts for prefs etc, and i can
add short cuts to added menu items from the attributes inspector, just not to buttons it appears.

Those shortcuts work because they’re not in a view – it’s the fact that your buttons are in a custom view that keeps them from receiving keyboard events.

Ric