Re: Just implementing -isEqual:, never invoked, causes crash
Re: Just implementing -isEqual:, never invoked, causes crash
- Subject: Re: Just implementing -isEqual:, never invoked, causes crash
- From: Jerry Krinock <email@hidden>
- Date: Sat, 20 Jun 2009 17:26:09 -0700
The problem is that the class for which I overrode -isEqual: is a
managed object. According to NSManagedObject documentation, this
"absolutely must not" be done.
After I simplified my object graph, removing some of its entities
relationships, I got a warning at runtime telling me about this. The
threshold seems to be about 5 entities and 6 relationships with
inverses, connected in a closed loop with the entity that has the
illegal override. If the object graph is simpler than this, then the
warning appears. If the object graph is more complex than this, you
just get these inexplicable crashes.
Since I had to make a demo project and spent a day discovering this, I
wrote up a bug report regarding the inconsistent warnings. Problem ID
6991826.
Jerry
Oh, I also figured out how to enter a command in the gdb console --
You have to hit the 'enter' key instead of 'return' after entering a
command. I've never used 'enter' in a console-type-thing. I suppose
this may be to allow multi-line commands.
_______________________________________________
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: | |
| >Just implementing -isEqual:, never invoked, causes crash (From: Jerry Krinock <email@hidden>) |
| >Re: Just implementing -isEqual:, never invoked, causes crash (From: Michael Ash <email@hidden>) |
| >Re: Just implementing -isEqual:, never invoked, causes crash (From: Jerry Krinock <email@hidden>) |
| >Re: Just implementing -isEqual:, never invoked, causes crash (From: Kyle Sluder <email@hidden>) |
| >Re: Just implementing -isEqual:, never invoked, causes crash (From: Jerry Krinock <email@hidden>) |
| >Re: Just implementing -isEqual:, never invoked, causes crash (From: Kyle Sluder <email@hidden>) |