• 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
NSDatePicker behaviour is odd when typing date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSDatePicker behaviour is odd when typing date
      • From: "Sean McBride" <email@hidden>
    • Re: NSDatePicker behaviour is odd when typing date
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Renaming the "Cancel" button for NSOpenPanel
  • Next by Date: Re: Event handling and tracking rect question
  • Previous by thread: Re: Standby: Handling going into and coming out from standby
  • Next by thread: Re: NSDatePicker behaviour is odd when typing date
  • Index(es):
    • Date
    • Thread