Added action and target

This commit is contained in:
Alexandre Wilhelm committed 2013-04-05 11:19:20 -07:00
1 parent 36b337e784
commit 090d097a53
1 file changed
+3
+3
View File
@@ -327,6 +327,7 @@ CPEraDatePickerElementFlag = 0x0100;
[self willChangeValueForKey:@"objectValue"];
[self willChangeValueForKey:@"dateValue"];
_dateValue = aDateValue;
[super setObjectValue:_dateValue];
[self didChangeValueForKey:@"dateValue"];
[self didChangeValueForKey:@"objectValue"];
@@ -334,6 +335,8 @@ CPEraDatePickerElementFlag = 0x0100;
_timeInterval = (_datePickerMode == CPSingleDateMode)? 0 : aTimeInterval;
[self didChangeValueForKey:@"timeInterval"];
[self sendAction:[self action] to:[self target]];
if (_datePickerStyle == CPTextFieldAndStepperDatePickerStyle || _datePickerStyle == CPTextFieldDatePickerStyle)
[_datePickerTextfield setDateValue:_dateValue];
else