Hello,

I have an issue with application menus.  I'm losing menu key equivalents to 
system short cuts and I'm not sure why.  Reading the Services Implementation 
Guide, it states "When an application already has a shortcut with that key 
equivalent, the application’s shortcut wins" and this is true when my 
application launches.  However during the course of using the application, I 
lose those key equivalents.

I've determined, generally, when this happens, so let me give a brief 
explanation on how our application behaves.  Upon launch, our menus and key 
equivalents are fine, but user actions can cause our application to switch into 
a different mode or state.  To accommodate this state, we remove all menus 
(File, Edit, etc ) between the Application menu and the Help menu and replace 
with menus that are more appropriate for that state.  Upon installation of the 
new menus, they lose their key equivalents to the system short cuts.  For 
instance, we have a key equivalent command-shift-y.  We lose this to Make New 
Stick Note if the key equivalent for that short cut is enabled.  If short cut 
is not enabled in the system preferences, our menu retains that key equivalent.

By removing the top level menus during the course of execution, does this free 
those key equivalents for the system to use?  How can I go about determining 
which accelerators are reserved by my application? This does not happen on 
Leopard and I suspect this is the case because system services did not have 
accelerators in Leopard?

I guess I'm having difficulty debugging this because the system is taking them 
and I get no console message when my equivalents cannot be installed and it 
seems to be contrary to what is stated in the guides.  So, if anyone can give 
me any tips for debugging this or explain to me what I've done wrong, it would 
be greatly appreciated.

Thanks
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to