[futurebasic] Re: [FB] [Cocoa] Multilingual Cocoa Word Guesser

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2009 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sat, 18 Jul 2009 21:23:44 -0400
How come I always do things the hard way?

Word Guesser works on automatic. Just compile this with FBtoC's  
Objective-C compiler preference.

Enter a word or partial word, hit and hit the "Guess" button.

Next step is to implement full automatic spelling from within FB.  
Then we will have a full-fledged spell checker for our apps.

I need to try to figure out how to send the spell checking panel a  
range of words to check. Ideas welcome.


void ShowSpellPanel()
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
NSPanel *spellingPanel = [[NSSpellChecker sharedSpellChecker]  
[spellingPanel orderFront:nil];
[pool release];

toolbox ShowSpellPanel
call ShowSpellPanel

until ( gFBQuit )