Nstextfield setstringvalue not updating
This looks like a long post, but only the first fifth or so is the post itself.
The rest is my code, for those who’d like to see how I used Buck & Yacktman’s code.
If the text field contains text, the text displays in the label as it should.
If I place the line of code above just before the code that reads and outputs the text field, then instead of the text box showing that text box, the text box text just disappears as if I had over written the contents of the field with an empty string.
I am not sure I am implementing the add Entry Window correctly. Update your question with the code sample and lets see what is going on.
I can get the app to pop up a message box with the string value of the text box, but I can't seem to set the string value of the text field with some default text.
When I change a value in the text field, the app delegate property will change.
However, if I go the other way and programmatically change the property's binded key, the value of the text field does not update.
Going through the code again by comparing the book’s code to the the version I typed in didn’t reveal anything unusual.
Going over my own code, I realized that I had declared storage for an instance of , and used that instance when declaring the observers.