bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: - (unsigned)hash addition in NSCalendarDate.m


From: Richard Frith-Macdonald
Subject: Re: - (unsigned)hash addition in NSCalendarDate.m
Date: Mon, 24 May 2004 16:37:09 +0100


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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]