Re: NSArrayController Update Delay
Re: NSArrayController Update Delay
- Subject: Re: NSArrayController Update Delay
- From: Mike Abdullah <email@hidden>
- Date: Mon, 17 Oct 2011 23:34:41 +0100
On 17 Oct 2011, at 22:22, Richard Somers wrote:
> SOLVED
>
> On Oct 13, 2011, at 4:55 PM, Mike Abdullah wrote:
>
>> I'm pretty sure the array controller is observing NSManagedObjectContextObjectsDidChangeNotification to arrange its objects. Normally, this doesn't fire until the end of the runloop. But you can force it to by calling -[NSManagedObjectContext processPendingChanges]
>
> Calling processPendingChanges was the key to solving the controller update delay issue. Thanks. Just curious how you came by this knowledge?
If it's not monitoring a relationship, the only public API for keeping an eye on changes is to observe that notification. The notification is documented not to fire immediately after a change, but to bunch up changes for efficiency.
_______________________________________________
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