Implement NSTextFinder protocol on NSTextView.

This commit is contained in:
Gregory John Casamento 2020-08-03 07:11:38 -04:00
parent 3030efa9f7
commit 405b9bae2f
4 changed files with 73 additions and 8 deletions

View file

@ -34,6 +34,7 @@
#import <GNUstepBase/GSVersionMacros.h>
#import <AppKit/NSText.h>
#import <AppKit/NSTextFinder.h>
#import <AppKit/NSInputManager.h>
#import <AppKit/NSDragging.h>
#import <AppKit/NSTextAttachment.h>
@ -92,7 +93,7 @@ be stored in the NSTextView. Non-persistant attributes don't, and should
therefore be stored in the NSLayoutManager to avoid problems.
*/
@interface NSTextView : NSText <NSTextInput, NSUserInterfaceValidations>
@interface NSTextView : NSText <NSTextInput, NSUserInterfaceValidations, NSTextFinderClient>
{
/* These attributes are shared by all text views attached to a layout
manager. Any changes must be replicated in all those text views. */
@ -247,6 +248,9 @@ therefore be stored in the NSLayoutManager to avoid problems.
// Text checking (spelling/grammar)
NSTimer *_textCheckingTimer;
NSRect _lastCheckedRect;
// NSTextFinder vars...
NSArray *_selectedRanges;
}