• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Notifying that a TextView's content has been changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Notifying that a TextView's content has been changed?
      • From: chaitanya pandit <email@hidden>
  • Prev by Date: Re: Determining GUI ivar assignments in IB
  • Next by Date: Core Data, Filtering by PopUps & Bindings Confusion
  • Previous by thread: Re: Determining GUI ivar assignments in IB
  • Next by thread: Re: Notifying that a TextView's content has been changed?
  • Index(es):
    • Date
    • Thread