Re: Removing Object form ArrayController without managedObjectContext
Re: Removing Object form ArrayController without managedObjectContext
- Subject: Re: Removing Object form ArrayController without managedObjectContext
- From: Keary Suska <email@hidden>
- Date: Mon, 29 Mar 2010 14:22:20 -0600
On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote:
> My guess was that when removing the objects form the array controller, these were being removed form the MOC, and therefore I couldn't see them in the consultation mode, only after restarting the app when the MOC fetch again the data.
An array controller won't remove MO's unless you have told it to. Check the setting in IB, or set it explicitly in code.
> Now I need to be able to clean the table after saving, otherwise I can't create more items unless I restart the app, or if I clean the table I must restart the app in order to see the newly created invoice's details.
This is a sign of poor design. The items array controller should use the invoice relationship as its content and it will take care of itself.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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