• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting spell-checker underlines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Setting spell-checker underlines (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Re: Unable to get event for shutdown/restart using QA1340
  • Next by Date: GraphicsImportGetNaturalBounds offset
  • Previous by thread: Setting spell-checker underlines
  • Next by thread: Re: Setting spell-checker underlines
  • Index(es):
    • Date
    • Thread