Re: Trouble comparing NSCalendarDates
Re: Trouble comparing NSCalendarDates
- Subject: Re: Trouble comparing NSCalendarDates
- From: Tito Ciuro <email@hidden>
- Date: Mon, 15 Nov 2004 14:33:53 +0100
On Nov 15, 2004, at 14:25, j o a r wrote:
In other words, if you generate two instances from the same string
representation they will be equal. So, if you *always* pass your new
instances through a serialization, you could later compare them to
other de-serialized instances using "isEqualToDate".
That said, I think it's better that you settle for a time interval
granularity, and compare like suggested in the page from the
documentation that you quoted in your last message.
Given that this code is using by other developers, I think it's better
if I take the last route you've suggested. Adding the interval to a
newly-restored date will bring it very close to the original date, so
it'll be up to the developer to follow Apple's documentation in order
to compare dates. I'll make sure this issue is clearly addressed in the
FAQ page.
Thanks a lot Joar.
Best regards,
-- Tito
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden