Notifying that a TextView's content has been changed?
Notifying that a TextView's content has been changed?
- Subject: Notifying that a TextView's content has been changed?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Fri, 14 Nov 2008 14:53:27 -0500
I have a TextView set up so its data is bound to my User Defaults
controller so that its content is saved when I press a button...
If I enter some text manually and click on my "Save" button (the one
that saves the preference) everything goes well, however, if I set
some text to my TextView programatically, via its outlet like this:
[myTextView setString:@"Some text"];
and then click save... the User Default are not saved...
somehow it seems that the text view isn't "aware" that its content has
changed because, if I set its text programatically, and then actually
go in the text view and insert some more text THEN click save, it
works...
It only fails when the textview's content has been set programatically
only but not been touched by the user...
Any help would be appreciated....
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden