Re: NSTreeController delete slowness...

2009-01-06 Thread kvic...@pobox.com
this if primarily for the archives, but its not a complete solution. i've managed to improve the performance of deletes by a factor of 4-4.5 by simply calling: -[NSTreeController setSelectionIndexPaths: nil]; prior to actually removing objects from my bound set. note that this is still

Re: NSTreeController delete slowness...

2009-01-05 Thread kvic...@pobox.com
i received the following advice off-list: IIRC, when you do set operations like that, it performs a remove for each item. Try making a mutable copy of the content set, performing the set operation, and then setting the content of the controller with the new set. That should wind up being fas

NSTreeController delete slowness...

2008-12-30 Thread kvic...@pobox.com
i've got an NSOutlineView bound via an NSTreeController to a mutable set in my model. in the sample i've been exploring, my outline consists of 608 top level items in the outline, and only goes one level deep. each top level item has 2 or more children, and there are a total of 1393 children.