Re: NSTableView
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
References: | |
| >NSTableView (From: "john darnell" <email@hidden>) |