• 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: Project Builder Template for menu extra?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project Builder Template for menu extra?


  • Subject: Re: Project Builder Template for menu extra?
  • From: Dan Waylonis <email@hidden>
  • Date: Tue, 26 Feb 2002 13:20:34 -0800

On Tuesday, February 26, 2002, at 06:41 AM, Adam Atlas wrote:

> Hi,
> Is there a Project Builder template for menu extras (i.e.
> AirPort, monitors, clock, battery, ASM)? If not, could anybody
> tell me where to find an example?

Hi Adam,

For future compatibility sake, you should consider using
NSStatusBar and NSStatusItem instead of MenuExtras.

You get just about all of the same behavior, but it requires an
application to be running. There are some magic Info.plist keys
to make the application not show up in the Dock or menu bar.

You just use the Cocoa application template, add a controller,
and in its awakeFromNib: method, you can create a new
NSStatusItem in the [NSStatusBar systemStatusBar]. From there,
you can set the menu, image, actions, etc. of the item.

Dan
__________________________________________________________________
Dan Waylonis email@hidden
Software Engineer http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Project Builder Template for menu extra? (From: Adam Atlas <email@hidden>)

  • Prev by Date: Re: [OT] Versions, Documentation, Frameworks
  • Next by Date: Re: DOs and DOn'ts
  • Previous by thread: Re: Project Builder Template for menu extra?
  • Next by thread: Re: Project Builder Template for menu extra?
  • Index(es):
    • Date
    • Thread