• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Updating System Menu bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Updating System Menu bar (From: Jeff Nouwen <email@hidden>)

  • Prev by Date: Warnings with NSError **
  • Next by Date: Re: Interface Builder Outlets
  • Previous by thread: Re: Updating System Menu bar
  • Next by thread: NSAppleScript init is really, really slow when attached to gdb?
  • Index(es):
    • Date
    • Thread