Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending events to MenuExtras?



I have a NSMenuExtra (I know its private, I inherited the code) with a few menu item. These are housed (parent process) by SystemUIServer AFAIK.

I want to know if it is possible for another application to send this menu an event to activate one of the choices, basically to simulate a user clicking on one of the menu items and have it perform the action associated with it. In essence I want to generate a click event for that menu item programatically.

If yes, then how would I do this? what is the target for the apple event? SystemUIServer? my menu handle? Is there a way to enumerate the menus ad click on them programatically or something like that?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.