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 sharedSpellChecker]
checkSpellingOfString:textString startingAt:0 *language:nil* wrap:NO
inSpellDocumentWithTag:spellCheckerDocumentTag() wordCount:NULL];

Hope that helps.

Best regards,
Jeremy

On Wed, Jun 17, 2009 at 3:54 PM, pwicks <[email protected]> wrote:

>
> I'm working on porting the os x spellchecker to chromium and I've run
> into a question. I'm trying to figure out how the language of the
> spellchecker is change. The only place that I can see where it is ever
> specified is in the constructor to Spellchecker. I don't see any other
> functions/methods that deal with language selection, just with
> querying the available languages. I was going to try and trace this
> through in the debugger, but the button on the options pane to change
> the language is greyed out. Anybody know anything about how this works
> or can point me in the right direction? (Sid, is this what you were
> talking about when you mentioned that there was something
> unimplemented?)
>
> Thanks,
>
> --Paul Wicks
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to