Tracking NSTextFinder changes
Tracking NSTextFinder changes
- Subject: Tracking NSTextFinder changes
- From: Shane Stanley <email@hidden>
- Date: Tue, 01 Jul 2014 14:08:02 +1000
I have a text view subclass, and I need to know when its contents have been changed. I have been overriding -shouldChangeTextInRange:replacementString:, but that does not get called if the user performs a replace via the find bar.
I tried observing the view's text storage's NSTextStorageDidProcessEditingNotification, but that's not triggered by a find-bar replace either.
Any suggestions on how I can track when a change is made via the find bar?
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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