Re: Toolbar item with popup menu
Re: Toolbar item with popup menu
- Subject: Re: Toolbar item with popup menu
- From: Scott Anguish <email@hidden>
- Date: Wed, 3 Oct 2007 12:05:49 -0400
On Oct 3, 2007, at 5:13 AM, Sergey Shapovalov wrote:
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.
You're most of the way there
you can find out how to insert a custom view using that example. The
custom view would display the image, and when it is clicked you can
bring up the popup button relative to the button using using a context
menu approach. see popUpContextMenu:withEvent:forView: for info about
contextual menus
I dont think you can achieve this without rolling that part
yourself. If you use popupbutton then you'll get a different look as
I recall.
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?
That sample is ancient.. so it could be an issue of Xcode not
indexing them with the version you have.
_______________________________________________
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