• 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: NSPopUpButton: items with same title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButton: items with same title


  • Subject: Re: NSPopUpButton: items with same title
  • From: "Ian G. Gillespie" <email@hidden>
  • Date: Fri, 21 Feb 2003 15:29:37 -0800

Figured it out. Get the popup button's menu, then add NSMenuItems to it and then set the popup button menu to the one that just had the menu items added to it.

According to the documentation when adding items into and NSPopUpButton, if two items have identical titles, one is removed. Does anyone know how I can over-ride this? If I sub-class NSPopUpButton, which methods should I over-ride?

I insert the company names or last names of people from Address Book and sometimes these can be the same.
_______________________________________________
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.

References: 
 >NSPopUpButton: items with same title (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: Re: NSPopUpButton: items with same title
  • Next by Date: Re: NSTableView - problem with drawing cell text
  • Previous by thread: Re: Enumerating Address Book properties
  • Next by thread: more than 10 items in Open Recent menu?
  • Index(es):
    • Date
    • Thread