Re: Setting spell-checker underlines
Re: Setting spell-checker underlines
- Subject: Re: Setting spell-checker underlines
- From: "I. Savant" <email@hidden>
- Date: Thu, 10 Jan 2008 11:13:39 -0500
On Jan 10, 2008 8:07 AM, Ivan C Myrvold <email@hidden> 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.
Unless you're doing it for a misspelled word, don't use the red wavy
line. It means *misspelled word*. Then again, if you're doing it for a
misspelled word, just let the system do it.
> Is it set by NSAttributedString as an attribute?
No. Read the text system documentation. You can draw things on the
text view itself, using the rect-for-range of the words you're
interested in. It's not a property of the text itself, but rather
drawing occurring behind the text on the view.
--
I.S.
_______________________________________________
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