diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 0145649c2..bda0c5a1b 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -652,7 +652,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); var acceptInvalidValue = NO; if ([_delegate respondsToSelector:@selector(control:didFailToFormatString:errorDescription:)]) - acceptInvalidValue = [_delegate control:self didFailToFormatString:[self _inputElement] errorDescription:error]; + acceptInvalidValue = [_delegate control:self didFailToFormatString:aValue errorDescription:error]; if (acceptInvalidValue === NO) return NO; diff --git a/Tests/Manual/CPFormatterTest/AppController.j b/Tests/Manual/CPFormatterTest/AppController.j index b1c3728d8..fe007de3e 100644 --- a/Tests/Manual/CPFormatterTest/AppController.j +++ b/Tests/Manual/CPFormatterTest/AppController.j @@ -149,7 +149,7 @@ var randomFromTo = function(from, to) else result = nil; - console.log("stringForObjectValue:%s ==> %s", [anObject description], result); + CPLog.info("stringForObjectValue:%s ==> %s", [anObject description], result); return result; } @@ -169,7 +169,7 @@ var randomFromTo = function(from, to) result = error === nil; - console.log("getObjectValue:forString:%s ==> %s", aString, result); + CPLog.info("getObjectValue:forString:%s ==> %s", aString, result); return result; }