Re: NSCalendar: does the thing work at all? Or am I just blind?
Re: NSCalendar: does the thing work at all? Or am I just blind?
- Subject: Re: NSCalendar: does the thing work at all? Or am I just blind?
- From: Chris Kane <email@hidden>
- Date: Thu, 26 May 2005 13:47:51 -0700
On May 24, 2005, at 3:23 PM, Ondra Cada wrote:
just have tried NSCalendar... perhaps I don't understand something
in a very serious way, but WTH?!?
[...]
comps=[gc components:NSYearCalendarUnit|NSMonthCalendarUnit|
NSDayCalendarUnit fromDate:date];
NSLog(@"Looks bad: %d-%d-%d",[comps year],[comps month],[comps day]);
This is a known bug found too late to fix for 10.4's release, in the
- components:fromDate:
- components:fromDate:toDate:options:
methods. The computations done by CFCalendar are fine if you want to
switch to the equivalent APIs, but the uses of them in NSCalendar
have the most annoying tiny "boo boo". Hopefully a software update
will come out in which this can be fixed.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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