• 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: KVC and KVO for arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >KVC and KVO for arrays (From: Hans van der Meer <email@hidden>)
 >Re: KVC and KVO for arrays (From: Adam P Jenkins <email@hidden>)
 >Re: KVC and KVO for arrays (From: mmalc crawford <email@hidden>)
 >Re: KVC and KVO for arrays (From: Adam P Jenkins <email@hidden>)
 >Re: KVC and KVO for arrays (From: mmalc crawford <email@hidden>)
 >Re: KVC and KVO for arrays (From: Adam P Jenkins <email@hidden>)
 >Re: KVC and KVO for arrays (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: KVC and KVO for arrays
  • Next by Date: Re: MD5 check sum of a file
  • Previous by thread: Re: KVC and KVO for arrays
  • Next by thread: Re: KVC and KVO for arrays
  • Index(es):
    • Date
    • Thread