[TxMt] Re: Cocoa Autocomplete

Sam Halliday sam.halliday at gmail.com
Thu Jan 11 15:12:29 UTC 2007


Hello,

On 11 Jan 2007, at 15:02, Adam R. Maxwell wrote:
> I think you could write a Foundation command-line tool that calls  
> [[NSSpellChecker sharedSpellChecker]  
> completionsForPartialWordRange:inString:language:inSpellDocumentWithTa 
> g:] and provides its results via tm_dialog.  I did a similar thing  
> in writing a tool that asks BibDesk for citation completions, and  
> it works pretty well.

That sounds like the best way to hack it! It would also be a way of  
getting at the preferred spelling correction for misspelt words.  
Foundation is the Objective C framework, right? Do you have any  
examples of programs doing something similar?

-- 
Sam


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macromates.com/textmate/attachments/20070111/40470988/attachment.sig>


More information about the textmate mailing list