I am trying to validate a NSTextField through NSFormatter, my problem is I could validate the partial string and change the content of the cell as user type in with isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:, but not the final, end string.
My problem is exactly like http://www.cocoabuilder.com/archive/cocoa/123473-final-string-validation-in-custom-nsformatter.html . Is there any way that I can change the contents of a cell after validating the final string through a formatter?. For example "8/" in a textfield is valid as long as that cell has focus, once the cell looses focus it need's to be changed to "8/1".
I tried the solution mentioned in that thread, but changing the object in the getObjectValue:forString:errorDescription: is not changing the text in the textfield.
P.S I want to do this within the NSFormatter methods. using NSTextField delegate is not an option for me.