Re: UI Controls in menubar
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.