On 24 May 2004, at 13:15, Marcus Müller wrote:
Hi all,
please accept the following addition to NSCalendarDate.m:
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/NSCalendarDate.m,v
retrieving revision 1.96
diff -r1.96 NSCalendarDate.m
2467a2468,2470
> - (unsigned)hash {
> return (unsigned)_seconds_since_ref;
> }
It allows for calendar dates to be stored as keys in dictionaries
(for whatever purpose). Please note that this already works in other
foundations (Apple, libFoundation) as well.
Done ... except that I implemented it for the abstract NSDate class
and all the subclasses rather than just NSCalendarDate.