mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Eliminate warnings in NSTextFinder
This commit is contained in:
parent
1711b1d0da
commit
3cc92a976d
2 changed files with 19 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue