• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: narraycontroller sort performance problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: narraycontroller sort performance problems


  • Subject: Re: narraycontroller sort performance problems
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 17 Dec 2009 08:52:42 -0800

On Dec 17, 2009, at 7:22 AM, Richard wrote:

> i assume this is because with each new search result that is being retrieved
> and added to the core data model, the array controller is resorting the
> entire collection of search results? can anyone suggest a solution to this
> problem?

I've run into this too. My workaround was to disconnect the array controller from the data model before doing the changes to the model, and then reconnect it afterwards. (Or you could just turn off sorting instead of disconnecting the controller entirely; but I've found that there can be other O(n^2) behaviors triggered by multiple additions to the array, so it's safest to disconnect.)

—Jens_______________________________________________

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

References: 
 >narraycontroller sort performance problems (From: Richard <email@hidden>)

  • Prev by Date: Re: Distributed Objects communication with a launchd "on-demand" daemon
  • Next by Date: Re: App works when launched from Xcode, not from Finder
  • Previous by thread: narraycontroller sort performance problems
  • Next by thread: Re: narraycontroller sort performance problems
  • Index(es):
    • Date
    • Thread