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

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.


  • Follow-Ups:
    • Re: NSTable Newbie Issues
      • From: Larry Fransson <email@hidden>
References: 
 >Re: NSTable Newbie Issues (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: Low level system status?
  • Next by Date: Experimenting with Views (previously Noob playing with Windows)
  • Previous by thread: Re: NSTable Newbie Issues
  • Next by thread: Re: NSTable Newbie Issues
  • Index(es):
    • Date
    • Thread