• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDatePicker behaviour is odd when typing date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDatePicker behaviour is odd when typing date


  • Subject: Re: NSDatePicker behaviour is odd when typing date
  • From: Graham Perks <email@hidden>
  • Date: Sun, 18 Mar 2007 14:12:05 -0500

Nick,

Thanks for the calendar explanation.

On Mar 18, 2007, at 1:19 PM, Nick Zitzmann wrote:

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?

This works correctly for me when I try it.

Create a new NSDatePicker, go to properties. Type 0001 for the year. You get 0002. Change the date from the 2nd to the 1st, and the time to 12:00AM (you'll need to use the arrows, type will give you a different time). Then click to 1AM and the date will go back to 12/31/01. I don't think Julian or Gregorian matters in this case, advancing one hour should not go back a day, and typing "0001" should not result in "0002".


Just changing (by typing) the date from 2001 to 1900 on a new picker results in a time change from 6pm to 7pm.

Try typing the date 2/4/1900 1:00AM. As soon as you get to the hour field, you can't type a 1! Type 1 and it changes to 2!

All Gregorian dates. I wouldn't expect changing one field to automatically adjust any of the other fields. It makes it hard to enter some dates.

Is there an alternate to NSDateTimePicker? As far as I can tell it's very broken for dates older than about a century.

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


References: 
 >NSDatePicker behaviour is odd when typing date (From: Graham Perks <email@hidden>)
 >Re: NSDatePicker behaviour is odd when typing date (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSDatePicker behaviour is odd when typing date
  • Next by Date: Re: Renaming the "Cancel" button for NSOpenPanel
  • Previous by thread: Re: NSDatePicker behaviour is odd when typing date
  • Next by thread: Re: NSDatePicker behaviour is odd when typing date
  • Index(es):
    • Date
    • Thread