Re: How to build a popup menu and show this menu?
Re: How to build a popup menu and show this menu?
- Subject: Re: How to build a popup menu and show this menu?
- From: Scott Anguish <email@hidden>
- Date: Thu, 23 Feb 2006 02:44:31 -0500
On Feb 23, 2006, at 2:26 AM, wlq wrote:
Thank you all.
I think that I should insert a new view into my application arch
and handle
all messages by myself.Thanks.
The other question is that how to show a popup menu when reply
message from a tool bar?
You'd want to add a menu to the button item that you insert...
so instead of just using the standard toolbar code, you'd create a
custom 'view' that responded to the click, and use setMenu: (as joar
suggested) to attach the menu item to that..
I'm not sure that Apple has any example code that covers this...
but, if you download the example code for the Cocoa Programming book
(www.cocoaprogramming.net) and look in the Chapter 18 examples
ToolbarExample, there is a custom control there that is inserted into
a toolbar.. that'll show you how to insert a different control... it
should get you started.
_______________________________________________
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