Re: Updating System Menu bar
Re: Updating System Menu bar
- Subject: Re: Updating System Menu bar
- From: Jeff Nouwen <email@hidden>
- Date: Wed, 14 Dec 2005 08:36:14 -0700
- Priority: normal
>
I've seen that it could be a possible solution but I would like to
>
do it like it is done from the system preferences. When you
>
enable the check button the icon appears in the system bar
>
without restarting SystemUIServer.
>
>
Maybe posting any notification, I really don't know. If somebody
>
has any other idea.
If all your button needs to do is show the Displays item and not
toggle it, how about calling:
[[NSWorkspace sharedWorkspace] openFile:@"/System/Library/
CoreServices/Menu Extras/Displays.menu""];
Double-clicking this file, or any other menu extra in that folder,
causes it to be immediately placed in the menubar. Of course, the
usual warning about using a hard-coded path to a system object
applies here.
- Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden