osx - NSTextView: Get text changes (insertions and deletions) -


i've got nstextview , -textdidchange: notification. that, can current string value of whole textview, can't figure out how tell what's been deleted , added.

for example, if string in text view this string , user deleted g, how can made aware of change?

is there way achieve this, preferably without subclassing?

there several delegate methods should looking for:

– textview:shouldchangetextinrange:replacementstring: – textview:shouldchangetextinranges:replacementstrings: – textview:shouldchangetypingattributes:toattributes: – textviewdidchangetypingattributes: 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -