Re: Menu-style NSToolbarItem?
Re: Menu-style NSToolbarItem?
- Subject: Re: Menu-style NSToolbarItem?
- From: Keith Blount <email@hidden>
- Date: Wed, 23 Aug 2006 01:11:24 -0700 (PDT)
Hi,
I have a subclass of NSToolbarItem that does pretty
much what you need. Check out KBPopUpToolbarItem on
this page:
http://www.literatureandlatte.com/freestuff/
It works like the pop-up toolbar items in Xcode, in
that if you click on the item, it just performs its
action. If you hold down the mouse for half a second,
though, it displays a menu. If you don't want this
behaviour and just want the menu without any delay, it
should be pretty easy to change. (The code was based
on a couple of snippets I found in the CocoaBuilder
archives.)
Hope that helps.
All the best,
Keith
--- ORIGINAL MESSAGE ---
I want my new toolbar item to display a dropdown menu
with some
options under it. Would I use:
http://developer.apple.com/
documentation/Cocoa/Conceptual/Toolbars/index.html?http://
developer.apple.com/documentation/Cocoa/Conceptual/Toolbars/Concepts/
HowToolbarsWork.html Listing #4 to display this type
of menu item or
should I use something else?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden