Re: Toolbar item with popup menu
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