Re: Wisdom of overriding isEqual:
Re: Wisdom of overriding isEqual:
- Subject: Re: Wisdom of overriding isEqual:
- From: Ondra Cada <email@hidden>
- Date: Thu, 11 Mar 2004 00:54:29 +0100
Patrick,
On Wednesday, Mar 10, 2004, at 23:33 Europe/Prague, Patrick Machielse
wrote:
I invite anyone with more information on the implementation of
isEqual: in
standard Cocoa classes to step forward :-)
Well I haven't ever needed the information, but if you have, it's
there: just use otool, and you'll see exactly which methods are
implemented in which class. Pipe the otool output through fgrep
isEqual, and it's more or less what you nees (perhaps a tad less since
the class name would be filtered out, the script needs to be a tad more
sophisticated to be truly useable).
I would suppose anything which has a well-defined contents *may*
override isEqual. NSString, NSNumber and containers surely do--I even
recall reading about that somewhere in docs, although I don't have the
thime to find the excerpts now (it is also possible it used to be
documented in the RTF OpenStep docs, but is not now in the HTML Mac OS
X ones).
Anyway, otool would give a definite and final answer.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.