mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:50:37 +00:00
Implement NSTextFinder protocol on NSTextView.
This commit is contained in:
parent
3030efa9f7
commit
405b9bae2f
4 changed files with 73 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue