mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:20:38 +00:00
Added nextKeyView to views withing gmodel to allow user to tab between buttons. Fixed a bug in NSBrowser. Made some corrections to NSSpellChecker and [NSTextView checkSpelling:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1ef5d6721d
commit
caac798bca
5 changed files with 173 additions and 69 deletions
|
@ -813,11 +813,15 @@ static NSNotificationCenter *nc;
|
|||
- (void) checkSpelling: (id)sender
|
||||
{
|
||||
NSSpellChecker *sp = [NSSpellChecker sharedSpellChecker];
|
||||
|
||||
NSRange errorRange;
|
||||
int count = 0;
|
||||
|
||||
errorRange = [sp checkSpellingOfString: [_textStorage string]
|
||||
startingAt: NSMaxRange (_selected_range)];
|
||||
errorRange = [sp checkSpellingOfString: [self string]
|
||||
startingAt: NSMaxRange (_selected_range)
|
||||
language: [sp language]
|
||||
wrap: YES
|
||||
inSpellDocumentWithTag: [self spellCheckerDocumentTag]
|
||||
wordCount: &count];
|
||||
|
||||
if (errorRange.length)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue