Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
8u20
-
None
Description
Implement DatePicker on Mac (and Windows...)
For Windows I didn't see a easy way to do it, native date time controls are made up of inner text field controls.
On Mac there is the AXDateField and the AXTimeField, but that is not what the native cocoa control uses.
It uses the undocumented AXDateTimeArea.
This role uses the AXDateTimeComponents, so the best of my observation that requires a NSNumber (Integer)
where each bit represent a component
bit 0 - AM/PM (I suspect)
bit 1 - seconds
bit 2 - minute (I think)
bit 3 - hour (I think)
bit 4 - no clue
bit 5 - day
bit 6 - month (I think)
bit 7 - year (I think)
Since we are only doing the a date picker we should return 224 (month/day/year).
We also will need to add support to NSDate in MacVariable.
I believe we should be able to use NSDate#dateWithTimeIntervalSince1970 and java LocalDate#toEpochDay() to transfer the data using a long.
For Windows I didn't see a easy way to do it, native date time controls are made up of inner text field controls.
On Mac there is the AXDateField and the AXTimeField, but that is not what the native cocoa control uses.
It uses the undocumented AXDateTimeArea.
This role uses the AXDateTimeComponents, so the best of my observation that requires a NSNumber (Integer)
where each bit represent a component
bit 0 - AM/PM (I suspect)
bit 1 - seconds
bit 2 - minute (I think)
bit 3 - hour (I think)
bit 4 - no clue
bit 5 - day
bit 6 - month (I think)
bit 7 - year (I think)
Since we are only doing the a date picker we should return 224 (month/day/year).
We also will need to add support to NSDate in MacVariable.
I believe we should be able to use NSDate#dateWithTimeIntervalSince1970 and java LocalDate#toEpochDay() to transfer the data using a long.