Add ivars to NSTextCheckingController

This commit is contained in:
Gregory John Casamento 2020-08-02 09:36:07 -04:00
parent 786b641efd
commit 93057d8123
2 changed files with 12 additions and 3 deletions

View file

@ -39,7 +39,12 @@ extern "C" {
@class NSArray, NSDictionary, NSMenu;
@interface NSTextCheckingController : NSObject
{
id<NSTextCheckingClient> _client;
NSInteger _spellCheckerDocumentTag;
NSMenu *_menu;
}
// initializer
- (instancetype) initWithClient: (id<NSTextCheckingClient>)client;

View file

@ -32,6 +32,9 @@
self = [super init];
if (self != nil)
{
_client = client;
_spellCheckerDocumentTag = 0;
_menu = nil;
}
return self;
}
@ -39,16 +42,17 @@
// properties...
- (id<NSTextCheckingClient>) client
{
return nil;
return _client;
}
- (NSInteger) spellCheckerDocumentTag
{
return 0;
return _spellCheckerDocumentTag;
}
- (void) setSpellCheckerDocumentTag: (NSInteger)tag
{
_spellCheckerDocumentTag = tag;
}
// instance methods...