I have been looking for information on how to implement NSSpellChecker and NSTextCheckingController the last couple of days and have come up empty. Does anybody of some information using these two AppKit API's or even better an example on using them with an IBOutlet text field?
I understand Apple use to make available the source code for textEdit app? Does anybody know if this is still the case?
Thanks
I understand Apple use to make available the source code for textEdit app? Does anybody know if this is still the case?
Thanks
It turns out if I use a NSTextView object instead of NSTextField object the spelling and grammar are built in. So, all I had do to was the following:
create a scrollable text view object and then connect the TextView as follows:
@IBOutlet var itemDescription: NSTextView!
Then turn on continuous spell checking with
itemDescription.isContinuousSpellCheckingEnabled = true
create a scrollable text view object and then connect the TextView as follows:
@IBOutlet var itemDescription: NSTextView!
Then turn on continuous spell checking with
itemDescription.isContinuousSpellCheckingEnabled = true