Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Martin Linklater
Doh! You're right if course. How about using removeSelectedIndexes:? Should be faster than sorting the contents before removing them, Thanks. 'removeObjectsAtArrangedObjectIndexes' does the job nice and quickly. ___ Cocoa-dev mailing list (Cocoa-dev

Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Kyle Sluder
On Mon, Mar 24, 2008 at 10:35 AM, Jeff LaMarche <[EMAIL PROTECTED]> wrote: > Doh! You're right if course. How about using removeSelectedIndexes:? > Should be faster than sorting the contents before removing them, Hrm. Why not try attacking this from the model end instead of the controller end?

Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Jeff LaMarche
Doh! You're right if course. How about using removeSelectedIndexes:? Should be faster than sorting the contents before removing them, Sent from my iPhone On Mar 24, 2008, at 10:26 AM, Martin Linklater <[EMAIL PROTECTED]> wrote: I would think that [itemBrowserArrayCTRL removeAllObjects];

Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Martin Linklater
I would think that [itemBrowserArrayCTRL removeAllObjects]; would be your best. By calling arrangedObjects and feeding it to removeObjects:, you're causing your array to sort all 15000 entries before it removes them individually. NSArrayController doesn't have a removeAllObjects method...

Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Jeff LaMarche
I would think that [itemBrowserArrayCTRL removeAllObjects]; would be your best. By calling arrangedObjects and feeding it to removeObjects:, you're causing your array to sort all 15000 entries before it removes them individually. HTH Jeff On Mar 24, 2008, at 10:16 AM, Martin Linklater wrot