[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isEqual: and hash in NSDate
From: |
Markus Hitter |
Subject: |
Re: isEqual: and hash in NSDate |
Date: |
Fri, 22 Jul 2005 23:05:16 +0200 |
Am 22.07.2005 um 20:35 schrieb Richard Frith-Macdonald:
I don't know of any -isEqualTo: method.
You find it in Mac OS X's DevTools documentation listed under Cocoa,
language Obj-C and with a parent of NSObject. Clicking on the entry
gives you almost the same description as NSObject's -isEqual:.
Nearer observations shows, however, it's a method/function of Cocoa's
scripting suite. My foul, sorry for the noise.
My understanding is that the variants with the class name in them
are intended as optimisations ... where the method may assume that
what it gets as an argument is a member of the correct class, thus
avoiding to need to check what class the argument belongs to.
This makes at least _some_ sense. :-)
Thanks,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
Re: isEqual: and hash in NSDate, Jeremy Bettis, 2005/07/22