• 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: NSTableView and NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and NSPopUpButton


  • Subject: Re: NSTableView and NSPopUpButton
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 9 Nov 2003 07:43:17 -0500

On Nov 9, 2003, at 12:39 AM, Chris Campbell wrote:

I have a tableview with a column of popupbuttons. I want each
popupbutton to have it's own unique list of items. I must be missing
something because all the popupbuttons are using the default.

No, you are not missing something. The datacell is a generic cell that is identical for all rows of a column. You want to make the cell different for each row. You can't with a standard table column.

Google is your friend. I googled "NSTableColumn different datacell each row" and was taken immediately to the NSTableColumn docs and the method dataCellForRow, which provide a way to do exactly what you want. Read those docs.

Jonathan
_______________________________________________
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: 
 >NSTableView and NSPopUpButton (From: Chris Campbell <email@hidden>)

  • Prev by Date: sDontHandleDiskArbMessages???
  • Next by Date: Re: High performance fade-in/fade-out of image
  • Previous by thread: NSTableView and NSPopUpButton
  • Next by thread: Locating moved or renamed file
  • Index(es):
    • Date
    • Thread