Hi,
I am trying to create a dynamic menu so i am creating Menu Items 
programatically. These menu items also have Alternate menu items. 
The problem is that when i assign CMD key programatically using
[menuItem setKeyEquivalentModifierMask:NSCommandKeyMask];[menuItem 
setKeyEquivalent:@""];
it doesn't work. 
However, if i assign CMD key through interface builder (for a hardcoded menu) 
it works fine. Also, assigning some other key programatically 
(NSAlternateKeyMask,NSControlKeyMask etc) also works fine. Why is the CMD key 
when assigned programatically not working ?
Thank you
- Adil
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to