• 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 tableColumn empty?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView tableColumn empty?


  • Subject: Re: NSTableView tableColumn empty?
  • From: Tony Cate <email@hidden>
  • Date: Thu, 23 Jun 2005 21:50:49 -0500

'identifier' is not the column name, it's a separate attribute you can set in IB's inspector.

On Jun 23, 2005, at 8:55 PM, Mark Dawson wrote:

I've added an NSTableView in IB, with 2 columns. I've typed in column titles (and they show up). However, I think I misunderstand how to use -tableView:tableViewobjectValueForTableColumn: row: What I'm trying to do is figure out which column I'm being called to to return objects for (one column will be radio buttons, the other text). However, the code that I've seen to figure out what the column is doesn't work for me:

- (id)tableView:(NSTableView *)tableView
      objectValueForTableColumn:(NSTableColumn *)tableColumn
      row:(int)row
{
    NSString *columnName = [tableColumn identifier];
_______________________________________________
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: NSTableView tableColumn empty?
      • From: Mark Dawson <email@hidden>
References: 
 >NSTableView tableColumn empty? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Is NSTableView/NSOutlineView the way to go?
  • Next by Date: Open Recent
  • Previous by thread: NSTableView tableColumn empty?
  • Next by thread: Re: NSTableView tableColumn empty?
  • Index(es):
    • Date
    • Thread