mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add ivars to NSTextCheckingController
This commit is contained in:
parent
786b641efd
commit
93057d8123
2 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue