• 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: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: "Ben Chen" <email@hidden>)
 >Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: "Hamish Allan" <email@hidden>)
 >Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: "Hamish Allan" <email@hidden>)
 >Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: new API for MacBook Air for Multi-touch trackpad?
  • Next by Date: Re: NSLog broken after call of NSTask and setStandardError
  • Previous by thread: Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
  • Next by thread: NSTimer problem
  • Index(es):
    • Date
    • Thread