Re: Lazy NSTableView cell content fetching
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