Skip navigation.
 
mlRe: Redefining shortcuts for my application at run-time
FROM : j o a r
DATE : Tue Nov 30 11:00:53 2004

On 2004-11-30, at 10.09, Виктор Борщак wrote:

> Can somebody suggest any way for redefinig keys in my app while
> run-time?
> Any source code would be welcome.


I'm not quite sure I see the problem. A menu contains an array of
items. Each item has a string and a bit mask that represents the
keyboard shortcut. You just have to iterate over your main menu and set
the keyboard shortcuts as you see fit. Please provide a more specific
question if you need more assistance. You get a reference to the main
menu from your NSApplication shared instance.

j o a r

Related mailsAuthorDate
mlRedefining shortcuts for my application at run-time ?????? ?????? Nov 30, 10:09
mlRe: Redefining shortcuts for my application at run-time j o a r Nov 30, 11:00