Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
- Subject: Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
- From: j o a r <email@hidden>
- Date: Thu, 17 Jan 2008 13:29:12 -0800
On Jan 17, 2008, at 11:16 AM, Hamish Allan wrote:
Feel free to log such things as feature requests for AppKit. What you
are wanting is basically a lazy-push model (all the data is pushed
into the view lazily) as opposed to the current lazy pull model (all
the data is pulled when the view needs it).
I don't want a push model: I don't want the table view to cache all
the data it ever displays, just the data for the currently selected
visible rows (because it is likely to need it again when the rows are
unselected). But thinking about it a bit more, this would be rather
inefficient when scrolling down a large table in which all the rows
are selected, so I should probably be more careful what I wish for :)
For that same reason, wouldn't it also be cool to have an inverse
method to:
tableView:objectValueForTableColumn:row:
that looks something like this:
tableView:invalidateObjectValueForTableColumn:row:
that would be called whenever a particular cell is no longer visible
in the table view, to allow the data source to purge the associated
resource?
j o a r
_______________________________________________
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