Re: how does EOs are compared?
Re: how does EOs are compared?
- Subject: Re: how does EOs are compared?
- From: Art Isbell <email@hidden>
- Date: Fri, 5 Sep 2003 12:32:45 -1000
On Friday, September 5, 2003, at 11:56 AM, Ricardo Strausz wrote:
The code below, inserts ALL of the selected objects; it is failing to
determine if an object was inserted. Since I am using NSSets to try to
avoid duplicity, I am comparing with isEqual:
It does not works...
isEqual: likely maps to equals() on the Java side.
EOCustomObject.equals() is documentated to compare object handles
(i.e., pointer addresses, EO1 == EO2) rather than EO contents.
If you extracted dictionaries of the same attributes from inserted and
source EOs and compared these dictionaries, then I think this would
work.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.