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: Marcus Müller
Subject: Re: - (unsigned)hash addition in NSCalendarDate.m
Date: Mon, 24 May 2004 17:39:10 +0200


On 24.05.2004, at 17:37, Richard Frith-Macdonald wrote:


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.

Much better so. ;-)

Cheers,

  Marcus

--
Marcus Mueller  .  .  .  crack-admin/coder ;-)
Mulle kybernetiK  .  http://www.mulle-kybernetik.com
Current projects: finger address@hidden





reply via email to

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