Re: KVC and KVO for arrays
Re: KVC and KVO for arrays
- Subject: Re: KVC and KVO for arrays
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 13 Feb 2008 16:30:55 -0500
On Feb 13, 2008 4:21 PM, mmalc crawford <email@hidden> wrote:
> The collection proxy still has to replace the whole array rather than
> just mutate it, so it's inefficient.
To be fair, you have not provided any supporting evidence of your
claim. Granted, the behavior you describe has always been my
suspicion of how array proxies work, but then again, what Adam
describes also makes a lot of sense. If the KVO array proxy knows
that it's being used as a proxy for an NSMutableArray ivar, then it
can forward its messages to the ivar and then dispatch appropriate KVO
notifications rather than construct a new array and call -set<Key>:
with the new array.
--Kyle Sluder
_______________________________________________
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