From 9f2ea190fcd9000729632d84b285312a05a6acbc Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Wed, 28 Oct 2009 20:20:33 -0700 Subject: [PATCH] Make text field KVO compliant again. --- AppKit/CPTextField.j | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 74b094c34..7c748dcd9 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -701,8 +701,10 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); */ - (void)_setStringValue:(id)aValue { + [self willChangeValueForKey:@"objectValue"]; [super setObjectValue:String(aValue)]; [self _updatePlaceholderState]; + [self didChangeValueForKey:@"objectValue"]; } - (void)setObjectValue:(id)aValue