• 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: Toolbar item with popup menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar item with popup menu


  • Subject: Re: Toolbar item with popup menu
  • From: Sergey Shapovalov <email@hidden>
  • Date: Wed, 3 Oct 2007 13:13:50 +0400

Scott,

thank you very much for the reply.

On Oct 3, 2007, at 12:43 PM, Scott Anguish wrote:


On Oct 3, 2007, at 4:30 AM, Sergey Shapovalov wrote:

Hello.

In my Cocoa application, I want to have toolbar items with popup menus, just like the ones in Xcode. Does NSToolbar provide this kind of behavior as standard functionality? If not, can the behavior of NSToolbarItem be customized the way I need? And, finally, maybe someone has already done the trick, and there's already some open source / sample code?


Search Xcode for "toolbar popup". You'll be pointed to the "ToolbarSample" on the Apple web page.

http://developer.apple.com/samplecode/ToolbarSample/index.html


As a general reminder to everyone, please use the search functionality in Xcode and try Google before posting here. Thanks

I'll definitely learn how this sample works. However, it does not provide exactly what I need: a button in toolbar, from which a popup menu will drop if the user clicks the button and holds it for a while. In other words, what I need is exactly the same behavior as implemented in Xcode windows. But I hope that having learned the sample you have pointed to, I'll find a hint towards how to implement what I need.


Concerning searching before sending - my apologies, but I really did try to search. For me, searching Xcode documentation for the phrase "toolbar popup" found nothing. Maybe my Xcode documentation is out of date? I also tried googling for "NSToolbar popup menu", but what I found were mostly links to third-party open-source projects that didn't do what I needed.

Best regards,
Sergey Shapovalov.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Toolbar item with popup menu
      • From: Scott Anguish <email@hidden>
References: 
 >Toolbar item with popup menu (From: Sergey Shapovalov <email@hidden>)
 >Re: Toolbar item with popup menu (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Toolbar item with popup menu
  • Next by Date: Re: NSCell subclass editing
  • Previous by thread: Re: Toolbar item with popup menu
  • Next by thread: Re: Toolbar item with popup menu
  • Index(es):
    • Date
    • Thread