• 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
10.11: NSDatePicker cuts off year digit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10.11: NSDatePicker cuts off year digit


  • Subject: 10.11: NSDatePicker cuts off year digit
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 10 Nov 2015 18:26:23 +0100

Hi,

I have an app with an NSDatePicker in small control size, date only format (day/month/year) and stepper controls. On El Capitan, with certain year numbers, the control cuts off the last digit, for instance with 1966, 1969 and 1999. The control displays the first 3 digits only ("196", "199").

Using the stepper (or cursor keys) it is possible to increment over the broken numbers, so the internal representation seems intact.

Weirdly one cannot enter the numbers using the keyboard either, upon pressing the last digit, the control beeps.

Clearly somewhere a string size measurement is going wrong. The NSDatePicker itself is wide enough to accommodate the entire date twice, so control size isn't the issue.

The app is linked against the 10.10 SDK, built with Xcode 6.4.

This happens on 10.11 only, not on 10.10. Anyone able to confirm this using own code? Maybe something is set up incorrectly? Anyone know of a workaround until this gets fixed (yes, I will file a bug once it's confirmed that it's not my fault).

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 10.11: NSDatePicker cuts off year digit
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Next by Date: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Previous by thread: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Next by thread: Re: 10.11: NSDatePicker cuts off year digit
  • Index(es):
    • Date
    • Thread