Re: NSTable Newbie Issues
Re: NSTable Newbie Issues
- Subject: Re: NSTable Newbie Issues
- From: "Louis C. Sacha" <email@hidden>
- Date: Wed, 14 Jul 2004 17:18:23 -0700
Hello...
Well, you are putting an NSString instance into your records array,
but your implementation of the datasource method
tableView:objectValueForTableColumn:row: requires that your array
contain a list of dictionaries with objects stored using the table
column idenitifiers as the keys.
Louis
Yes even with the data source set to self it still gives me no data
on the table... Any other ideas of what might be causing my
problems? thanks!
...
> > > // NSMutableArray *records;
> > > // NSString *name;
...
> > >
> > name = @"test";
> > [records addObject:name];
> > >
...
> > >
> > > - (id)tableView:(NSTableView *)personal_Table
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
> > > {
> > > id theRecord, theValue;
> > >
> > > NSParameterAssert(rowIndex >= 0 && rowIndex < [records count]);
> > >
> > theRecord = [records objectAtIndex:rowIndex];
> >
> > > theValue = [theRecord objectForKey:[aTableColumn identifier]];
> > >
> > > return theValue;
> > > }
_______________________________________________
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.