• 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
NSTableView/NSPopUpButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView/NSPopUpButtonCell


  • Subject: NSTableView/NSPopUpButtonCell
  • From: Phillip Mills <email@hidden>
  • Date: Wed, 26 Mar 2003 10:25:13 -0500

I've checked some archives for this and found information that comes close to being an answer, but not quite.

I have a table with two rows. I'd like the cells of the first column to be menus and have the display of that working by creating and configuring a NSPopUpButtonCell prototype and stuffing it into the NSTableColumn. I also set a target and action for the cell and the right method is being called when I make a menu selection.

However, what I don't get is how to retrieve the selected value from the popup since the sender to my method is the NSTableView. What I actually need is the title of the menu item that the user has selected. Also, in tableView:objectValueForTableColumn:row: I have no idea what to return when the popup column is the one to be refreshed from my data source.

Any help or pointers to samples would be appreciated.
_______________________________________________
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: 
 >Leaks in CFPropertyListCreateFromXMLData and CFFileURLCreateDataAndPropertiesFromResource? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Declared or not?
  • Next by Date: Re: Dragging a file out of an NSTableView
  • Previous by thread: Leaks in CFPropertyListCreateFromXMLData and CFFileURLCreateDataAndPropertiesFromResource?
  • Next by thread: Declared or not?
  • Index(es):
    • Date
    • Thread