• 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: isEqual: Here's how GNU does it (NSIsInstance())
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: cocoa-dev digest, Vol 2 #3829 - 15 msgs
  • Next by Date: Re: Brushed Metal: Embroidered text
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #3829 - 15 msgs
  • Next by thread: MallocDebug "Unable to read malloc information from (null)"
  • Index(es):
    • Date
    • Thread