• 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
Datasource methods in view-based tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Datasource methods in view-based tables


  • Subject: Datasource methods in view-based tables
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 13 Feb 2016 11:11:35 +1100

I'm working on a project that involves view-based tables largely configured in code. I'm actually populating the cells in -tableView:viewForTableColumn:row:, and I see the (very) simple example in Apple's docs does the same thing. But that leaves me wondering about the role of the datasource method -tableView:objectValueForTableColumn:row:. The documents insist it's required, but as far as I can see, it's not doing anything. In a simple test, omitting it seems to make no difference.

Is it really required, and if so, would it matter if it just returned nil all the time? I guess I just see something that's called so often is wasting cycles if it's not needed.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


_______________________________________________

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: Datasource methods in view-based tables
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Full-text indexing on iOS
  • Next by Date: Re: Cocoa-dev Digest, Vol 13, Issue 82
  • Previous by thread: Re: Don't you hate it when Appkit crashes?
  • Next by thread: Re: Datasource methods in view-based tables
  • Index(es):
    • Date
    • Thread