Re: Notifying that a TextView's content has been changed?
Re: Notifying that a TextView's content has been changed?
- Subject: Re: Notifying that a TextView's content has been changed?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Fri, 14 Nov 2008 15:33:02 -0500
Hmm I tried, unfortunately it is not working....
I also tried [self willChangeValueForKey:@"myTextView"];
it was a random guess but it didn't work either...
On 14-Nov-08, at 3:22 PM, chaitanya pandit wrote:
Try posting a NSTextDidChangeNotification with your text view as the
object, after you do setString:
On 15-Nov-08, at 1:23 AM, Jean-Nicolas Jolivet wrote:
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
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