Re: Question about MVC
Re: Question about MVC
- Subject: Re: Question about MVC
- From: Jens Alfke <email@hidden>
- Date: Fri, 18 Dec 2009 09:21:45 -0800
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