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

Re: NSTableView


  • Subject: Re: NSTableView
  • From: "David Wilson" <email@hidden>
  • Date: Fri, 23 May 2008 16:12:58 -0400

On Fri, May 23, 2008 at 4:03 PM, john darnell
<email@hidden> wrote:
> - (id) directoryTable: (NSTableView *) aTableView
> objectValueForTableColumn:(NSTableColumn *) aTableColumn row: (int)
> rowIndex
> {
>   NSLog(@"Row index is %d", rowIndex);
>
>   NSString *file = [arrayOfFiles objectAtIndex:rowIndex];
>   return [file self];
> }

You're not using the proper method name. You need to implement
- (id)tableView: objectValueForTableColum: row:

The name of your table has nothing to do with anything. The first
argument will contain a pointer to the table that is currently asking
for an object value; you can use that pointer to determine (if you
have multiple tables) which table to provide data for.

--
- David T. Wilson
email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • RE: NSTableView
      • From: "john darnell" <email@hidden>
References: 
 >NSTableView (From: "john darnell" <email@hidden>)

  • Prev by Date: Re: Setting iTunes album art with ScriptingBridge
  • Next by Date: NSTableView header offsets when scrolled
  • Previous by thread: NSTableView
  • Next by thread: RE: NSTableView
  • Index(es):
    • Date
    • Thread