Re: isEqual: Here's how GNU does it (NSIsInstance())
Re: isEqual: Here's how GNU does it (NSIsInstance())
- Subject: Re: isEqual: Here's how GNU does it (NSIsInstance())
- From: Patrick Machielse <email@hidden>
- Date: Fri, 12 Mar 2004 11:25:16 +0100
op 12-03-2004 08:05 schreef Mark Onyschuk
>
Here's an example of how GnuStep defines NSString's isEqual: and
>
isEqualToString: methods. It illustrates a lot of what Bill Cheeseman's
>
post describes about how isEqual: works:
>
[]
>
>
You can find their current CVS online here:
>
>
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/
>
Source/NSString.m
Mark,
Thanks for this info. This squares with my present understanding of the
'isEqual: pattern'. It can be useful to look under the hood, in case of
doubt!
I noticed the GSObjCIsInstance(anObject) function, and feel this can be
useful for typechecking arguments. Is there such a beast in Cocoa / Obj-C?
(maybe named NSIsInstance()) I've not seen it mentioned in any Apple
documentation.
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.