I have an NSTextStorage
delegate imlementing textStorageDidProcessEditing:
. Unfortunately, the userInfo
doesn't contain any details about the changes to the text.
How can I find out what actually changed?
Ideally I'd like to know everything sent to [NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:]
, but just the edited range would be good enough.
You could just write your own subclass of NSLayoutManager and add it to your NSTextSTorage using
addLayoutManager:
.