mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 16:30:47 +00:00
Change all spelling panel action methods to return no result.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e440b9c138
commit
9369adb0b4
2 changed files with 15 additions and 24 deletions
|
@ -1,8 +1,14 @@
|
||||||
|
2011-03-13 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSSpellChecker.m (-_findNext:, -_learn:, -_forget:,
|
||||||
|
-_ignore:, -_guess:, -_correct:, -_switchDictionary:,
|
||||||
|
-_highlightGuess:): Change action methods to return no result.
|
||||||
|
|
||||||
2011-03-13 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2011-03-13 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSSpellChecker.m (-init, -dealloc): Fix nasty
|
* Source/NSSpellChecker.m (-init, -dealloc): Fix nasty
|
||||||
retain/release error, which could crash applications after
|
retain/release error, which could crash applications after
|
||||||
changing the spell checker language in the spell panel.
|
changing the spell checker language in the spelling panel.
|
||||||
|
|
||||||
2011-03-13 Fred Kiefer <FredKiefer@gmx.de>
|
2011-03-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -541,7 +541,7 @@ inSpellDocumentWithTag:(int)tag
|
||||||
[self _populateAccessoryView];
|
[self _populateAccessoryView];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _findNext: (id)sender
|
- (void) _findNext: (id)sender
|
||||||
{
|
{
|
||||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||||
tryToPerform: @selector(checkSpelling:)
|
tryToPerform: @selector(checkSpelling:)
|
||||||
|
@ -551,11 +551,9 @@ inSpellDocumentWithTag:(int)tag
|
||||||
{
|
{
|
||||||
NSLog(@"No responder found");
|
NSLog(@"No responder found");
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _learn: (id)sender
|
- (void) _learn: (id)sender
|
||||||
{
|
{
|
||||||
NSString *word = [_wordField stringValue];
|
NSString *word = [_wordField stringValue];
|
||||||
|
|
||||||
|
@ -572,11 +570,9 @@ inSpellDocumentWithTag:(int)tag
|
||||||
NS_ENDHANDLER
|
NS_ENDHANDLER
|
||||||
|
|
||||||
[self _findNext: sender];
|
[self _findNext: sender];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _forget: (id)sender
|
- (void) _forget: (id)sender
|
||||||
{
|
{
|
||||||
NSString *word = [_wordField stringValue];
|
NSString *word = [_wordField stringValue];
|
||||||
|
|
||||||
|
@ -594,11 +590,9 @@ inSpellDocumentWithTag:(int)tag
|
||||||
NS_ENDHANDLER
|
NS_ENDHANDLER
|
||||||
|
|
||||||
[self _findNext: sender];
|
[self _findNext: sender];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _ignore: (id)sender
|
- (void) _ignore: (id)sender
|
||||||
{
|
{
|
||||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||||
tryToPerform: @selector(ignoreSpelling:)
|
tryToPerform: @selector(ignoreSpelling:)
|
||||||
|
@ -610,18 +604,15 @@ inSpellDocumentWithTag:(int)tag
|
||||||
}
|
}
|
||||||
|
|
||||||
[self _findNext: sender];
|
[self _findNext: sender];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _guess: (id)sender
|
- (void) _guess: (id)sender
|
||||||
{
|
{
|
||||||
// Fill in the view...
|
// Fill in the view...
|
||||||
[self _populateAccessoryView];
|
[self _populateAccessoryView];
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _correct: (id)sender
|
- (void) _correct: (id)sender
|
||||||
{
|
{
|
||||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||||
tryToPerform: @selector(changeSpelling:)
|
tryToPerform: @selector(changeSpelling:)
|
||||||
|
@ -632,11 +623,9 @@ inSpellDocumentWithTag:(int)tag
|
||||||
NSLog(@"No responder found");
|
NSLog(@"No responder found");
|
||||||
}
|
}
|
||||||
[self _findNext: sender];
|
[self _findNext: sender];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _switchDictionary: (id)sender
|
- (void) _switchDictionary: (id)sender
|
||||||
{
|
{
|
||||||
id<NSSpellServerPrivateProtocol> proxy = nil;
|
id<NSSpellServerPrivateProtocol> proxy = nil;
|
||||||
NSString *language = nil;
|
NSString *language = nil;
|
||||||
|
@ -658,11 +647,9 @@ inSpellDocumentWithTag:(int)tag
|
||||||
[_dictionaryPulldown selectItemWithTitle: _language];
|
[_dictionaryPulldown selectItemWithTitle: _language];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) _highlightGuess: (id)sender
|
- (void) _highlightGuess: (id)sender
|
||||||
{
|
{
|
||||||
NSString *selectedGuess = nil;
|
NSString *selectedGuess = nil;
|
||||||
|
|
||||||
|
@ -670,8 +657,6 @@ inSpellDocumentWithTag:(int)tag
|
||||||
[_ignoreButton setEnabled: NO];
|
[_ignoreButton setEnabled: NO];
|
||||||
[_guessButton setEnabled: YES];
|
[_guessButton setEnabled: YES];
|
||||||
[_wordField setStringValue: selectedGuess];
|
[_wordField setStringValue: selectedGuess];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) awakeFromNib
|
- (void) awakeFromNib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue