Re: NSToolbarItem Menu
Re: NSToolbarItem Menu
- Subject: Re: NSToolbarItem Menu
- From: "Ujwal S. Sathyam" <email@hidden>
- Date: Sun, 22 Jun 2003 00:48:36 -0700
Hi,
I looked over the SimpleToolbarExample, and saw that if its toolbar was
in text only mode, it would show a menu. However, I couldn't find out
how to do this in Icon & Text or Icon Only modes. I've seen this done in other Cocoa applications such as Keynote. If someone could tell me
how to do it, that'd be great!
You can use a NSPopUpButton as a custom view for the toolbar item, and assign the proper menu for the "Icon" and "Icon and Text" modes. In "Text" mode, use the [toolbarItem setMenuFormRepresentation: ] method.
Ujwal
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.