• 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: NSToolbarItem Menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Navigating property lists using paths?
  • Next by Date: Re: TrollTech releases QT for Mac under GPL
  • Previous by thread: Re: Navigating property lists using paths?
  • Next by thread: NSToolbarItem Menu
  • Index(es):
    • Date
    • Thread