Re: Setting spell-checker underlines
Re: Setting spell-checker underlines
- Subject: Re: Setting spell-checker underlines
- From: Ivan C Myrvold <email@hidden>
- Date: Thu, 10 Jan 2008 21:05:47 +0100
Den 10. jan.. 2008 kl. 18:37 skrev Douglas Davidson:
On Jan 10, 2008, at 5:07 AM, Ivan C Myrvold wrote:
Is it possible to set the red wavy underline the spell checker
sets, in an NSTextView?
That is by not using NSSpellChecker. I want to do it in my Cocoa
application.
Is it set by NSAttributedString as an attribute?
It is a temporary attribute on the layout manager,
NSSpellingStateAttributeName. See the Leopard AppKit release notes
for details.
Douglas Davidson
Well, I am in fact using it for showing misspelled words.
i found out reading more in the documentation that this worked:
[oattributedTextView setSpellingState:1 range:elementRange];
where oattributedTextView is the outlet of the NTextView.
Ivan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden