• 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: Question about MVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about MVC


  • Subject: Re: Question about MVC
  • From: Michael de Haan <email@hidden>
  • Date: Fri, 18 Dec 2009 12:12:09 -0800

Thanks Jens,
I thought it was something like that.

On Dec 18, 2009, at 9:21 AM, Jens Alfke wrote:

>
> On Dec 18, 2009, at 7:37 AM, Michael de Haan wrote:
>
>> So, why would  one not simply use an NSMutableArray and simple add or delete model objects. I suspect part of the answer is that assigning a new array allows easier use of KVC but I am not sure as this is not specifically explained.
>
> I haven't seen the code, but this is probably because of observing. It's more work to send out KVO notifications when a mutable-array property is mutated; you have to do it manually before and after the change, unless you use some weird tricks using a fake proxy mutable array.
>
> —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: 
 >Question about MVC (From: Michael de Haan <email@hidden>)
 >Re: Question about MVC (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Dependent values that are not iVars
  • Next by Date: Re: Dependent values that are not iVars
  • Previous by thread: Re: Question about MVC
  • Next by thread: Thread safe QT playback
  • Index(es):
    • Date
    • Thread