• 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: Mark Dawson <email@hidden>
  • Date: Fri, 24 Jun 2005 11:47:52 -0700

Sigh.  That was it!

Thanks!

Mark

'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:
email@hidden


This email sent to email@hidden


_______________________________________________ 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
References: 
 >NSTableView tableColumn empty? (From: Mark Dawson <email@hidden>)
 >Re: NSTableView tableColumn empty? (From: Tony Cate <email@hidden>)

  • Prev by Date: Re: NSConnection not working between processes
  • Next by Date: Using URL field in Core Data App to fill a Web View when User Clicks Button
  • Previous by thread: Re: NSTableView tableColumn empty?
  • Next by thread: NSTreeController & NSOutlineView
  • Index(es):
    • Date
    • Thread