10.11: NSDatePicker cuts off year digit
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