Re: NSDatePicker behaviour is odd when typing date
Re: NSDatePicker behaviour is odd when typing date
- Subject: Re: NSDatePicker behaviour is odd when typing date
- From: "Sean McBride" <email@hidden>
- Date: Mon, 19 Mar 2007 13:34:07 -0400
- Organization: Rogue Research
On 2007-03-18 08:05, Graham Perks said:
>NSDatePicker has some unusual behavior that is very easy to demonstrate.
>
>Simply create a window in IB and drag on an NSDatePicker. Now test
>the window. Set the date to 1/1/1900 12:00AM. Select the year and
>type 1500. Woah! The date changed to 1/24!!
>
>Actually it might be a challenge even setting the date to 1/1/1900.
>In the NSDatePicker inspector you get the same results. Type 1900 in
>the year field and it becomes 1901! Arrow down to get 1900. Change
>the hour forward from 12AM to 1AM. The date goes back to
>12/31/1899!! What is going on?
>
>The behavior seems to occur with dates prior to 1918.
>
>Can anyone explain this behavior, or is it just a bug?
Doesn't surprise me. NSDatePicker's keyboard handling is also weird
with 24-hour times. Type '22' in the hour field to get to "22h00" (10
pm) and it doesn't work.
>Is there an alternate date picker I could use instead? Is there a way
>to get NSDatePicker to work? What's the alternate if I would like
>B.C. dates represented? Questions questions!
There is WBTimeControl, but I think it only does times. I forget if
there is a date class too.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden