Re: KVO on objects in NSArrayController
Re: KVO on objects in NSArrayController
- Subject: Re: KVO on objects in NSArrayController
- From: Sean McBride <email@hidden>
- Date: Tue, 06 Sep 2011 17:01:10 -0400
- Organization: Rogue Research Inc.
On Sat, 3 Sep 2011 09:23:43 -0700, Kyle Sluder said:
>> I understand that... I think the alternative would be to register an
>> observer on all 8000+ objects in the array.
>
>Yes, this is the expected pattern with KVO. Contrary to what you might
>think at first, it is *fast*.
Unless you are using garbage collection, in which case it is an order of magnitude slower than with MRC (manual ref counting). ie horribly slow.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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