Fixed: CPDatePicker works with action and target

Previously the CPDatePicker didn't work with the action and target. Now each time the dateValue changed, the given action is sent to the target.
This commit fix also a bug with moving with tab and the arrows. Before, the left arrow worked liked a tab when the firstElementTextField was selected in a textual CPDatePicker.

Test app in Tests/Manual/CPDatePicker.
This commit is contained in:
Alexandre Wilhelm
2013-04-05 11:28:41 -07:00
parent 090d097a53
commit 812cd463db
+1 -1
View File
@@ -710,7 +710,7 @@ var CPZeroKeyCode = 48,
CGContextAddLineToPoint(context, [self bounds].size.width + bezelInset.left - borderWidth, borderWidth);
CGContextAddLineToPoint(context, [self bounds].size.width + bezelInset.left - borderWidth, [self bounds].size.height - borderWidth);
CGContextAddLineToPoint(context, borderWidth - bezelInset.left, [self bounds].size.height - borderWidth);
CGContextAddLineToPoint(context, borderWidth-bezelInset.left, borderWidth);
CGContextAddLineToPoint(context, borderWidth - bezelInset.left, borderWidth);
CGContextStrokePath(context);
CGContextClosePath(context);