Re: Problem with tableView:viewForTableColumn:row:
Re: Problem with tableView:viewForTableColumn:row:
- Subject: Re: Problem with tableView:viewForTableColumn:row:
- From: Quincey Morris <email@hidden>
- Date: Fri, 15 Aug 2014 15:28:43 -0700
On Aug 15, 2014, at 14:09 , Laurent Daudelin <email@hidden> wrote:
> Now, I implement *tableView:viewForTableColumn:row:*. Based on an array of
> dictionaries, I set the various UI items in the tableCellView that I get
> calling *makeViewWithIdentifier:owner:* passing the tableColumn identifier
> that is set to my custom tableViewCell subclass. Everything works but as I
> download stuff associated with each row and update the appropriate
> dictionary, the tableview starts flickering. Inserting an NSLog() at the
> beginning of *tableView:viewForTableColumn:row:* reveals that the method is
> called several times per second. NOTE: I am not calling *reloadData* or
> *reloadDataForRowIndexes:columnIndexes:* at *ANY* place in my code.
>
> How is that possible? Is it possible that the NSProgressIndicator is
> causing this? Otherwise, what am I missing?
My guess is that it’s the data updates that are leading to this, rather than the progress indicator. However, you can test it easily enough — (1) try the download without updating the dictionaries, and (2) try the download with the progress indicator hidden.
*How* are you updating the data that the table view sees? Are there bindings involved? Is there an objectValue -> underlying dictionary binding, or a cell view element -> objectValue binding?
_______________________________________________
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