• 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: 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

  • Follow-Ups:
    • Re: Updating System Menu bar
      • From: "David K." <email@hidden>
  • Prev by Date: NSXMLParser useless with HUGE files
  • Next by Date: Fwd: WWDC 2005 DVDs [OT]
  • Previous by thread: Re: Updating System Menu bar
  • Next by thread: Re: Updating System Menu bar
  • Index(es):
    • Date
    • Thread