Eliminate warnings in NSTextFinder

This commit is contained in:
Gregory John Casamento 2020-08-21 13:37:22 -04:00
parent 1711b1d0da
commit 3cc92a976d
2 changed files with 19 additions and 6 deletions

View file

@ -25,6 +25,17 @@
#import "AppKit/NSTextCheckingController.h"
#import "AppKit/NSSpellChecker.h"
/*
@interface NSSpellChecker (Private)
- (void) _findNext: (id)sender;
- (void) _ignore: (id)sender;
- (void) _guess: (id)sender;
- (void) _correct: (id)sender;
- (void) _switchDictionary: (id)sender;
- (void) _highlightGuess: (id)sender;
@end
*/
@implementation NSTextCheckingController
// initializer
@ -58,17 +69,19 @@
// instance methods...
- (void) changeSpelling: (id)sender
{
}
- (void) checkSpelling: (id)sender
{
/*
int wordCount = 0;
[[NSSpellChecker sharedSpellChecker] checkSpellingOfString: [_client string]
startingAt: 0
language: nil
wrap: NO
inSpellDocumentWithTag: _spellCheckerDocumentTag
wordCount: &wordCount];
wordCount: &wordCount];*/
}
- (void) checkTextInRange: (NSRange)range

View file

@ -45,16 +45,16 @@
}
// Validating and performing
- (void) performTextFinderAction: (id)sender
{
[self performFindPanelAction: sender];
}
- (void) performFindPanelAction: (id)sender
{
[self performAction: [sender tag]];
}
- (void) performTextFinderAction: (id)sender
{
[self performFindPanelAction: sender];
}
- (NSInteger) tag
{
return _tag;