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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to