Controlling menu extras
Controlling menu extras
- Subject: Controlling menu extras
- From: email@hidden
- Date: 13 Dec 2006 12:39:31 -0000
- Encoding: 8bit
I know the API is private, and I know that nobody but Apple is ever supposed to do anything related to a menu extra for any reason, but I need to anyway.
I have an application which configures a new VPN connection (also unsupported by Apple for some reason), creates a new admin user and grants that user full ARD privileges. Since this introduces a certain level of vulnerability, I want to make sure that the ARD menu extra is enabled by default so the user can see when and if they are being observed.
I tried using the various menu extra related options to ARD's kickstart tool, but as far as I can tell, these options do nothing whatsoever. I can tell NSWorkspace to simply open the file, and this works fine, but something gets very confused when SystemUIServer gets front process status and all of my application's windows get sent to the background even though it still has full run of the menu bar.
What I'd like to do is use CoreMenuExtraAddMenuExtra, but while it's easy to find a prototype for the function, I cannot figure out where the symbol is actually defined in order to make the linker happy, and all reports of success using this method date back to 10.1 anyway, so I don't know if it's even valid anymore.
So, is there any way that I can open an Apple branded menu extra and keep my windows up front at the same time? makeKeyAndOrder front has no effect, nor does setting the first responder or anything else other than an actual click.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden