• 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
View Based Table - where is my data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View Based Table - where is my data?


  • Subject: View Based Table - where is my data?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 01 May 2013 22:34:01 +0700

A NSTableView with one column which uses NSTableCellViews. Uses DataSource:

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
	NSDictionary *aLine = self.dataArray[rowIndex];
	NSTableCellView *cellView = [ aTableView makeViewWithIdentifier: @"DieSpalte" owner: self ];
	[ cellView.textField setStringValue: aLine[kNameKey] ];
	[ cellView.imageView setImage: aLine[kImageKey] ];
	NSLog(@"%s %ld %@",__FUNCTION__, rowIndex, cellView);
	return cellView;
}

This method gets called as expected and returns non-nil NSTableCellViews.

The Table has the right number of columns, but each column has the same picture (NSImageNameActionTemplate?) and the text of every row is: "Table View Cell".
This is NOT what I want to see.
How do I get the table to display my data?

Gerriet.


_______________________________________________

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

  • Follow-Ups:
    • Re: View Based Table - where is my data?
      • From: Quincey Morris <email@hidden>
    • Re: View Based Table - where is my data?
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: How to implement readonly property
  • Next by Date: Re: View Based Table - where is my data?
  • Previous by thread: Re: How to implement readonly property
  • Next by thread: Re: View Based Table - where is my data?
  • Index(es):
    • Date
    • Thread