NSDatePicker behaviour is odd when typing date
NSDatePicker behaviour is odd when typing date
- Subject: NSDatePicker behaviour is odd when typing date
- From: Graham Perks <email@hidden>
- Date: Sun, 18 Mar 2007 08:05:20 -0500
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?
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!
Thanks,
Graham Perks.
_______________________________________________
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