Setting ignoredWords for a NSTextView
Setting ignoredWords for a NSTextView
- Subject: Setting ignoredWords for a NSTextView
- From: Felix Franz <email@hidden>
- Date: Fri, 1 Jul 2005 14:42:45 +0200
Hi all,
I have a window which contains a NSTextView which should ignore
certain words when the user invokes the SpellChecker. My code so far
looks like this:
- (void) awakeFromNib
{
...
NSArray* ignoredWords = [self ignoredWords];
// an NSArray containing NSString objects
[spellChecker setIgnoredWords: ignoredWords
inSpellDocumentWithTag:[textView spellCheckerDocumentTag]];
...
}
But the SpellChecker doesn't ignore the words I set in awakeFromNib.
I thought the above code would suffice. What do I have to do to
programmatically ignore some words in a Spell-check af an NSTextView?
Thanks in advance
felix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden