• 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
Re: Notifying that a TextView's content has been changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:39:50 -0500

Thanks a lot, that did the trick!


On 14-Nov-08, at 3:29 PM, Douglas Davidson wrote:


On Nov 14, 2008, at 12:22 PM, chaitanya pandit wrote:

Try posting a NSTextDidChangeNotification with your text view as the object, after you do setString:

That's probably not the best idea. If you want to fully integrate your programmatic changes with user text changes, including undo and notifications, call -shouldChangeTextInRange:replacementString: before making the change, and if the value is YES, make the change, then call -didChangeText.


Douglas Davidson


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


References: 
 >Notifying that a TextView's content has been changed? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Notifying that a TextView's content has been changed? (From: chaitanya pandit <email@hidden>)
 >Re: Notifying that a TextView's content has been changed? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: RE: Unable to generate a PDF from textual data
  • Next by Date: Re: Cocoa and NSLog
  • Previous by thread: Re: Notifying that a TextView's content has been changed?
  • Next by thread: Re: Notifying that a TextView's content has been changed?
  • Index(es):
    • Date
    • Thread