Problem with tableView:viewForTableColumn:row:
Problem with tableView:viewForTableColumn:row:
- Subject: Problem with tableView:viewForTableColumn:row:
- From: Laurent Daudelin <email@hidden>
- Date: Fri, 15 Aug 2014 17:09:25 -0400
I've just created a new OS X project from Xcode 5.1.1. Simple project, one
window, one tableview set to use NSTableCellView. I have a few UI items in
the table cell view. Nothing fancy, a couple of NSTextFields and an
NSProgressIndicator.
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?
-Laurent.
--
Laurent Daudelin email@hidden
AIM/iChat/Skype:*LaurentDaudelin* http://www.nemesys-soft.com/
Logiciels Nemesys Software
_______________________________________________
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