NSTableView / NSArrayController Drawing
NSTableView / NSArrayController Drawing
- Subject: NSTableView / NSArrayController Drawing
- From: "Murray Bookchin" <email@hidden>
- Date: Thu, 26 Jun 2008 16:43:27 -0700
Hi All,
I'm using an NSArrayController to populate my NSTableView from an array of
dictionaries. The problem is my app spends the majority of its cpu time
re-drawing the NSTableview (~60-70%) as I add rows, even though the view is
"idle" (displaying the top 20 or so rows which aren't changing).
I did find one thread in the archives on this topic... (
http://www.cocoabuilder.com/archive/message/cocoa/2007/4/24/182355) it
sounds like there's a trick to getting the ArrayController to recognize that
the content array is mutable.. Doing that stops the ArrayController from
redrawing the TableView every time something is added to the content array?
The fix is not clear to me from that thread however...
Has anyone else experienced this and/or know how to work around it?
_______________________________________________
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