On 2 Mar 2009, at 16:42:00, Ulai Beekam wrote:


Hi,

How do I create a Safari-style pop-up menu? I'm talking about the pop-up menu (be sure to correct me if this thing is not even called a pop-up menu) that appears when you click the ">>" button to show off-screen tabs.

Just open Safari (use version 3) and keep creating new tabs until the ">>" button appears to the right. And then click that button. You will see the menu I want to achieve.

How can I programmatically make such a menu appear on my custom NSView in my mouseDown: method? Do you have some simple sample code please?

Use NSPopUpButton.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to