Re: Updating System Menu bar
Re: Updating System Menu bar
- Subject: Re: Updating System Menu bar
- From: "David K." <email@hidden>
- Date: Fri, 16 Dec 2005 14:11:19 +0100
Hi all,
thanks guys.
Regards,
David
On Dec 14, 2005, at 4:36 PM, Jeff Nouwen wrote:
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