Re: NSArrayController in entity mode and permutations (CoreData question)
Re: NSArrayController in entity mode and permutations (CoreData question)
- Subject: Re: NSArrayController in entity mode and permutations (CoreData question)
- From: vincent habchi <email@hidden>
- Date: Tue, 13 Apr 2010 21:37:45 +0200
Le 12 avr. 2010 à 22:22, Kyle Sluder a écrit :
> On Mon, Apr 12, 2010 at 12:12 PM, vincent habchi <email@hidden> wrote:
>> Besides, the proxy solution has one advantage: since the object in the NSArrayController reacts to actions performed on buttons linked to it, I think it is better to have code in the proxy object rather than on the NSManaged one, that gets overwritten every time I alter it, even slightly. What do you think?
>
> You're advocating an explicit violation of MVC. Why not instead move
> the code into the model where it belongs and have the controller ask
> the model to perform the operation?
That's eventually what I did. I reverted to my first schema, and let go the proxies. Thanks for pointing that it was a *really* bad idea. More under the answer to Quincey.
Vincent
_______________________________________________
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