Datasource methods in view-based tables
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