
On p. 90, we're instructed to build an app with a Text Field where the user enters a string, and another one which displays the character count of the string. I did this using bindings. The Text Fields are bound to variables "textField" and "count" and we implement setTextField_ with a check for string value of None, which is what we get when we delete the last character of a string in the Text Field. Continuously update value is checked in the binding.
class PyStrLenAppDelegate(NSObject): |
