Re: Core Data: rare exception
Re: Core Data: rare exception
- Subject: Re: Core Data: rare exception
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 8 Oct 2007 19:13:45 -0500
Hola IS (and Jim)!
May be you did not read the last part of the first mail, but here it
is how to reproduce the error:
-create a new Core Data Document based app
-in the model, create 3 entities, say A,B,C
-in each entity add an attribute, say "string/name" with default
value "hola", and create the relationships A<-->>B<-->>C
-in the Document.nib, create 3 array controllers, one for each
entity, bind them to the file's owner managedDocumentContext and in B
and C also bind the contentSet to the appropriate controller
-in the main window add 3 textFields, binding its values to the
properties of each entity, and add 3 buttons which you will connect
to the "add:" outlet of each controller.
-build and run
-push the buttons in sequence
-see your console
Am I missing something?
Dino
p.d., I am coding in Xcode 2.0 at a Dual 1.8 G5 w/ Server 10.4.10, if
this helps at all.
On Oct 8, 2007, at 5:56 PM, I. Savant wrote:
I am not writing a single line of code, therefore if it is a bug,
it is a Core Data's bug... and I cannot fix it;
however, my impression is that it may have to be with the
relations in my model...
I'm not sure how you can assert it's a Core Data bug when you
haven't even yet posted the code which produces this error. What
object are you -add:'ing and how do you create it? To what are you -
add:'ing it? An array controller?
Please read all the thread before judging...
Many beginners (to an API, not necessarily programming in
general) are quick to label things they don't understand as an API
bug. 95% of the time, they're not just wrong, but ridiculously so.
Be careful and make sure you post your proof first or your blame is
little more than noise.
BTW: I had been writing code for more than 30 years... and in Mach
since NeXT 1.0... so, may be I am making a stupid mistake, but please
do not call me newbie...
do I have to make some of them mandatory?
may be some deleting rule?
some not obvious attribute I have to set?
Don't know; you've not provided sufficient information. Please
give this a read:
http://www.catb.org/~esr/faqs/smart-questions.html
... then post back with the necessary info. My *first* guess is
that you're either not maintaining memory properly (and the message
is being sent to some random object which happens to be an
NSDictionary) or you're trying to add an NSDictionary instance when
you really mean to add an NSManagedObject. That's about as good as
you can get with the info you've provided: a guess.
--
I.S.
_______________________________________________
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