Re: NSTable Newbie Issues
Re: NSTable Newbie Issues
- Subject: Re: NSTable Newbie Issues
- From: Kodex <email@hidden>
- Date: Wed, 14 Jul 2004 18:27:17 -0700 (PDT)
Ok i have changed the objectvaluefortablecolumn:row:
to allow me to just output a string and i still am
getting no data being displayed.
--- "Louis C. Sacha" <email@hidden> wrote:
>
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;
>
> > > > }
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
_______________________________________________
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.