Re: Project Builder Template for menu extra?
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.