• 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: rows of pop up button cells with unique menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rows of pop up button cells with unique menus


  • Subject: Re: rows of pop up button cells with unique menus
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 20 Sep 2006 14:06:52 -0500

On Sep 20, 2006, at 1:57 PM, R. Matthew Emerson wrote:

I have looked through the archives and searched Google for information on using NSPopUpButtonCells in NSTableViews.
...
Now, my application, I have a table with two columns. One column shows a user's name, and the other an NSPopUpButton cell that I want to hold a list of the user's email addresses that I have extracted from an X.509 certificate. (There would typically be only one or two email addresses listed.)

When the pop up button is clicked, the menu pops up, and is populated with the correct information in the menuNeedsUpdate: delegate method. The problem is that I can't figure out how to get the pop up button cell in the relevant row to display the selected item after the button pops down.

I would think that I need each pop up button cell to have its very own menu, but I can't quite see how to arrange this.

What happens if you provide a NSTableView delegate method tableView:willDisplayCell:forTableColumn:row: that populates the cell with that row's menu items and selection?


Mind you, that isn't a rhetorical or pedagogical question; I don't know the answer myself.

	-- F

 --
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available to a Wailing World -- http://six.manoverboard.org/

_______________________________________________
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


  • Follow-Ups:
    • Re: rows of pop up button cells with unique menus
      • From: "R. Matthew Emerson" <email@hidden>
References: 
 >rows of pop up button cells with unique menus (From: "R. Matthew Emerson" <email@hidden>)

  • Prev by Date: Out of Office
  • Next by Date: Re: Using WebKit to display data that's not in HTML
  • Previous by thread: rows of pop up button cells with unique menus
  • Next by thread: Re: rows of pop up button cells with unique menus
  • Index(es):
    • Date
    • Thread