Re: Wisdom of overriding isEqual:
Re: Wisdom of overriding isEqual:
- Subject: Re: Wisdom of overriding isEqual:
- From: Glenn Andreas <email@hidden>
- Date: Wed, 10 Mar 2004 08:46:47 -0600
At 1:33 PM +0100 3/10/04, Patrick Machielse wrote:
Hi,
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.
At least, this is what I expect. The documentation of NSObject won't tell
me how this NSObject Protocol message is really implemented. Strange...
One thing to remember is that Protocols _don't_ implement things.
They are just an interface, and nothing more - no code (it should
only describe "what" and not "how"). Only classes which implement
protocols actually, well, implement them. It would be nice at times
to be able to provide "default implementations" for some protocol
mehtods, but then it wouldn't really a protocol (and one can just
make an information protocol as a category of NSObject instead).
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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.