Project Builder Template for menu extra?

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

    Thanks,
    Adam Atlas
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • On Tuesday, February 26, 2002, at 02:41 PM, Adam Atlas wrote:

    > 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?

    Menu Extras are not supported, and you shouldn't really write one. The
    recommended API for placing items in the menubar is
    NSStatusBar/NSStatusItem. If you really want to write a Menu Extra, poke
    with SystemUIElement.framework and the source to ASM (yes, it's open,
    http://asm.vercruesse.de)

      -- Finlay
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • 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                         <danw...>
    Software Engineer                    http://www.nekotech.com
    nekotech SOFTWARE                 650.964.2490 (O)
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • If you look in the archives (or on cocoa.mamasam.com), you'll see that
    it is still a private API.
    So doing menu extras is not possible nor recommended.
    What you can do is use the public NSStatusBar and NSStatusBar objects in
    an application though.

    Cyril

    On Tuesday, February 26, 2002, at 03:41 PM, 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?
    >
    > Thanks,
    > Adam Atlas
    > _______________________________________________
    > cocoa-dev mailing list | <cocoa-dev...>
    > Help/Unsubscribe/Archives:
    > http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    > Do not post admin requests to the list. They will be ignored.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
previous month february 2002 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      
Go to today