• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how does EOs are compared?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: how does EOs are compared?
      • From: Ricardo Strausz <email@hidden>
    • Re: how does EOs are compared?
      • From: Art Isbell <email@hidden>
References: 
 >how does EOs are compared? (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: Creating a Table on the DBMS from EOF?
  • Next by Date: Re: how does EOs are compared?
  • Previous by thread: how does EOs are compared?
  • Next by thread: Re: how does EOs are compared?
  • Index(es):
    • Date
    • Thread