Inefficient drawing - NSTableView + NSArrayController
Inefficient drawing - NSTableView + NSArrayController
- Subject: Inefficient drawing - NSTableView + NSArrayController
- From: Guy Meyer <email@hidden>
- Date: Tue, 24 Apr 2007 00:24:41 +0300
I have got an NSTableView bound to an NSArrayController bound to an
object (nib owner) variable of to-many relationships
(NSMutableArray) KVC complaint.
Each object in the array contains a variable for each table column
(using key path).
Everything works as expected.
The issue is that any change to the array (i.e. insertion of object
or replacement of an object) forces a redraw of the whole table
(verified via Quertz Debug) even if not necessary instead of just
redrawing a single row. How can I make the table redraw a single row
(using KVC/KVO ).
In addition, currently when there is a need to update a single cell
in the table I am replacing the object in the array using
(replaceObjectIn<Key>AtIndex:withObject:) forcing a whole row
notification (which forces a whole redraw of array as described
above). How can I make the table redraw a single cell (using KVC/KVO ).
Thanks
Guy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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