Re: HELP!! Big problem with relationships and saving in iOS core data: RESOLVED

2012-03-02 Thread Eric Giguere
Hi all Thanks to all of you for your answers. Mark just found the source of my problem and I want to publish it since it may help some more people that have that kind of issues, even if I at the same time expose my ignorance of some basic knowledge but hey, that's learning. My Core Data

HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Eric Giguere
Hi all I'm on the verge of loosing my sanity... I've been running after save bugs and I'm now completely out of ideas, other than to drop Core Data. In my model, I have EntityA, wich has an 1-many relationship to EntityB, which also have a 1-many relationship to EntityC. Both relationship are

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Richard Somers
On Mar 1, 2012, at 7:12 AM, Eric Giguere wrote: I'm on the verge of loosing my sanity... I've been hitting this error for a long time now. If I try deleting the C object before saving the new stuff, I get this error: Domain=NSCocoaErrorDomain Code=134030 The operation couldn’t be

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Keary Suska
On Mar 1, 2012, at 7:12 AM, Eric Giguere wrote: I'm on the verge of loosing my sanity... I've been running after save bugs and I'm now completely out of ideas, other than to drop Core Data. In my model, I have EntityA, wich has an 1-many relationship to EntityB, which also have a 1-many

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Eric Giguere
Hi Richard Thx for the advice, and a good one I'd say at least for the sanity part. It didn't help in terms of code though that's why I'm sending this SOS :) At least its good to know that I just don't know. I have some basic experience with core data on the mac, first real try on iOS. Its

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Eric Giguere
Hi Keary Esoteritech, I like it! I am using only 1 context. Right now I've capture de basic code doing this: Initiating the data connexion from the main window using an NSFetchedResultsController that is loading (well its empty now...) the list of item A. This guy is on a property in my

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Keary Suska
On Mar 1, 2012, at 2:39 PM, Eric Giguere wrote: In a button handler, I create an object A, then a child B then and child C to B. Save this whole thing, all is ok. The key issue here is, *how*? We would need to see your code to make sure you are establishing the relationships properly...