• 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: UI Controls in menubar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Controls in menubar


  • Subject: Re: UI Controls in menubar
  • From: Rustam Muginov <email@hidden>
  • Date: Tue, 21 Oct 2003 14:58:09 +0400

On 10/20/03 1:12 PM, "Daniele M." <email@hidden> wrote:

> Hello,
> Is possible to insert an UI control into the menu bar? (see iSeek from
> AmbrosiaSW). If yes, anyone can explain me how to do it?

Yes, it is possible, and where are two variants.


First, Apple recommender, is to use NSStatusItem. This is (partialy)
documented and officialy supported API.
You can find an article with the tutorial here
http://cocoadevcentral.com/articles/000052.php

Second is NSMenuExtra, using the private API. You can find the tutorial
and "how-to" in my article here
http://cocoadevcentral.com/articles/000078.php

Both NSStatusItem and NSMenuExtra allow you to assign a NSView or it
subclass as a menu title. Inside this NSView, you can put anything.
_______________________________________________
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: 
 >UI Controls in menubar (From: "Daniele M." <email@hidden>)

  • Prev by Date: Mouse Movements in a Drawer
  • Next by Date: Editing items
  • Previous by thread: Re: UI Controls in menubar
  • Next by thread: [OT] Open Source Goes to COMDEX
  • Index(es):
    • Date
    • Thread