Re: Wisdom of overriding isEqual:
Re: Wisdom of overriding isEqual:
- Subject: Re: Wisdom of overriding isEqual:
- From: Patrick Machielse <email@hidden>
- Date: Thu, 11 Mar 2004 15:32:05 +0100
op 11-03-2004 00:54 schreef Ondra Cada
>
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 :-)
[]
>
Anyway, otool would give a definite and final answer.
Knowing that it overrides isEqual: is only half way there. I'd like to know
what the implementation does. As it stands, only classes that define
isEqualTo...: have documentation stating when two objects are considered
equal if you store them in, for instance, an NSSet. For classes that do not
have a documented 'isEqualTo..:' method you have to 'trust' Cocoa to do the
right thing.
If I need to store a collection of 'unique' objects, I have a perception of
when objects should be considered unique. If these are standard Cocoa
classes I would like to know if the standard implementation of isEqual:
sattisfies my needs, or if I have to make some alterations.
Groeten,
Patrick
--
Hieper Software
w: www.hieper.nl
e: email@hidden
_______________________________________________
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.