• 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: Core Data doesn't save toMany relations please HELP :S
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Core Data doesn't save toMany relations please HELP :S (From: Gustavo Pizano <email@hidden>)
 >Re: Core Data doesn't save toMany relations please HELP :S (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Trouble forking my project
  • Next by Date: Re: Trouble forking my project
  • Previous by thread: Re: Core Data doesn't save toMany relations please HELP :S
  • Next by thread: Re: Core Data doesn't save toMany relations please HELP :S
  • Index(es):
    • Date
    • Thread