• 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: "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.


  • Follow-Ups:
    • Re: NSTable Newbie Issues
      • From: Kodex <email@hidden>
References: 
 >Re: NSTable Newbie Issues (From: Kodex <email@hidden>)

  • Prev by Date: Re: Preventing window selection
  • Next by Date: Low level system status?
  • Previous by thread: Re: NSTable Newbie Issues
  • Next by thread: Re: NSTable Newbie Issues
  • Index(es):
    • Date
    • Thread