• 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: Lazy NSTableView cell content fetching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lazy NSTableView cell content fetching


  • Subject: Re: Lazy NSTableView cell content fetching
  • From: Ryan Stevens <email@hidden>
  • Date: Sun, 7 Aug 2005 17:55:12 -0700

On Aug 6, 2005, at 9:11 AM, Hamish Allan wrote:


Hi,

Is there any way of determining which cells in an NSTableView are currently visible? Obtaining data for one of my columns is very costly, so I want to fetch it lazily in a separate thread in response to tableView:objectValueForTableColumn:row: (which would return a placeholder), but I also want to cancel the fetching of any rows which are not still visible by the time their fetching operation comes around.

Thanks,
Hamish



You should be able to get the visible rect from the enclosingScrollView and then get the visible rows with rowsInRect:.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Lazy NSTableView cell content fetching (From: Hamish Allan <email@hidden>)

  • Prev by Date: Modifying bitmap data
  • Next by Date: Converting image types and preserving EXIF.
  • Previous by thread: Lazy NSTableView cell content fetching
  • Next by thread: tiffrepresentation of multiple subviews
  • Index(es):
    • Date
    • Thread