• 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: Menu-style NSToolbarItem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Loading an URL in Safari
  • Next by Date: Re: Sorting NSTableView
  • Previous by thread: Re: Menu-style NSToolbarItem?
  • Next by thread: [SOLVED]: NSConnection rootProxyForConnectionWithRegisteredName fails to find connection
  • Index(es):
    • Date
    • Thread