How do I enable spell checking within an NSTextField on Mac OS X?

Posted by Luke on Stack Overflow See other posts from Stack Overflow or by Luke
Published on 2010-05-13T08:17:13Z Indexed on 2010/05/13 8:34 UTC
Read the original article Hit count: 325

I have an NSTextField that I would like to enable "as-you-type" spell checking. When I load my application I can do this from the Menu Bar > Edit > Spelling and Grammar > Check Spelling While Typing.

I would like this option to be enabled by default. Within IB I can enable this for a NSTextView but I would like to use NSTextField for this part of the UI.

Thank you.

© Stack Overflow or respective owner

Related posts about nstextfield

Related posts about cocoa