• 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: Wisdom of overriding isEqual:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wisdom of overriding isEqual:


  • Subject: Re: Wisdom of overriding isEqual:
  • From: Dustin Voss <email@hidden>
  • Date: Thu, 11 Mar 2004 11:54:11 -0800

On 10 Mar, 2004, at 12:40 PM, Dustin Voss wrote:

On 10 Mar, 2004, at 8:26 AM, Bill Cheeseman wrote:

on 2004-03-10 7:33 AM, Patrick Machielse at email@hidden wrote:

Recently I've been thinking about overriding the isEqual: message on
standard Cocoa classes, and I'm curious if there is any 'danger' in doing
so.

There is new documentation on Apple's Developer Documentation site showing
how to override -isEqual: and how to write your own -isEqualTo...: methods
in your own subclasses, with sample code. Sorry, I've forgotten the URL, but
it shouldn't be hard to find.

I think you are referring to <http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaObjects/Articles/Introspection.html>.

Just a note, but from reading the above Introspection document, I see no signs that the default implementation of isEqual: calls isEqualToX:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Wisdom of overriding isEqual:
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Wisdom of overriding isEqual: (From: Bill Cheeseman <email@hidden>)
 >Re: Wisdom of overriding isEqual: (From: Dustin Voss <email@hidden>)

  • Prev by Date: Fwd: I want the NSProgressIndicator to stand still!!! [SOLVED]
  • Next by Date: Re: very small tiff files...
  • Previous by thread: Re: Wisdom of overriding isEqual:
  • Next by thread: Re: Wisdom of overriding isEqual:
  • Index(es):
    • Date
    • Thread