• 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: How to build a popup menu and show this menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to build a popup menu and show this menu? (From: "wlq" <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: j o a r <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: "wlq" <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: Scott Anguish <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: Scott Anguish <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: "wlq" <email@hidden>)

  • Prev by Date: how do I save my NSOutlineView items into a file?
  • Next by Date: Displaying Only Readable/Writable Directory on NSOpenPanel
  • Previous by thread: Re: How to build a popup menu and show this menu?
  • Next by thread: Re: How to build a popup menu and show this menu?
  • Index(es):
    • Date
    • Thread