Re: Removing Object form ArrayController without managedObjectContext

2010-03-30 Thread Gustavo Pizano
IT WORKS AHHH SUCH A RELIEF! Thans a lot, guys, you made me see the problem I was having, so I set up the Set Content binding of the ItemXInvoice Array controller to be _newInvoice.toItemsXInvoice properly set the relation in the add and addPredifiened methods, and it did work!. OMG

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Gustavo Pizano
Keary Hello On Mar 30, 2010, at 2:18 AM, Keary Suska wrote: > >> Item * newItem = [NSEntityDescription >> insertNewObjectForEntityForName:@"Item" inManagedObjectContext:[self >> managedObjectContext]]; >> ItemXInvoice * newItemXInvoice = [NSEntityDescription >> insertNewObjectForEnti

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Keary Suska
On Mar 29, 2010, at 3:29 PM, Gustavo Pizano wrote: > I have, Invoice < ->> ItemXInvoice << > Invoice, the Array controller I set > up with ItemXInvoice entity, and when I click an add button I do: Whenever possible, manipulate relationships directly. Perhaps you do this, but the code isn't sh

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Gustavo Pizano
Keary Hi. On Mar 29, 2010, at 10:22 PM, Keary Suska wrote: > 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,

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Quincey Morris
On Mar 29, 2010, at 13:22, Keary Suska wrote: > On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote: > >> My guess was that when removing the objects form the array controller ... >> Now I need to be able to clean the table after saving, otherwise I can't >> create more items unless I restart the

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Keary Suska
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.