Re: Core Data doesn't save toMany relations please HELP :S
Re: Core Data doesn't save toMany relations please HELP :S
- Subject: Re: Core Data doesn't save toMany relations please HELP :S
- From: Joanna Carter <email@hidden>
- Date: Thu, 25 Mar 2010 17:26:54 +0000
Hi Quincey
> This is not a good approach to MVC programming. You're trying to take short cuts by updating your data model "by remote control" -- that is, by programming NSArrayControllers instead of your data model. That's a bit like trying to disassemble a precision watch using a crowbar and a hammer. :)
Heheh :-)
> Here's the rule of thumb I use: any line of code that refers to an array controller is a *last resort*, not a preferred solution, to be used only when there is no alternative.
How about, with a Core Data app, getting the content of an NSObjectController after editing?
{
...
Customer *editedCustomer = [self.customerController content];
...
}
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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