[chromium-dev] Re: Changing the language of the spellchecker?

2009-06-17 Thread Paul Wicks
Oh, ok, so when the language is changed, a new spellchecker object is created. That's what I thought might be happening. Thanks, -Paul Wicks On Wed, Jun 17, 2009 at 5:14 PM, sidchat wrote: > > Yes, Evan is right. So, when you change a spellcheck language in the > Options menu (languages_page_v

[chromium-dev] Re: Changing the language of the spellchecker?

2009-06-17 Thread sidchat
Yes, Evan is right. So, when you change a spellcheck language in the Options menu (languages_page_view.cc), it changes a pref member (prefs::kSpellCheckDictionary) value. This change is caught by the Profile (ProfileImpl::Observe in profile.cc), which (re)initializes the spellchecker with the new

[chromium-dev] Re: Changing the language of the spellchecker?

2009-06-17 Thread Jeremy Moskovich
The canonical example you should be following here is WebKit on OSX. Grepping the sourcecode for NSSpellChecker shows usage in WebKit/mac/WebCoreSupport/WebEditorClient.mm and WebKit/mac/WebView/WebHTMLView.mm WebKit/mac/WebCoreSupport/WebEditorClient.mm:638,664 : NSRange range = [[NSSpellChecker

[chromium-dev] Re: Changing the language of the spellchecker?

2009-06-17 Thread Evan Martin
Just a guess, but perhaps when you change languages a new Spellchecker object with the new language is constructed. I would expect the language-picking options haven't yet been implemented. You can also switch languages via the right-click menu on a text area, but that may also be unimplemented.