• 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: 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


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

  • Prev by Date: Adding self as Nib owner
  • Next by Date: Re: Adding self as Nib owner
  • Previous by thread: Re: Setting spell-checker underlines
  • Next by thread: GraphicsImportGetNaturalBounds offset
  • Index(es):
    • Date
    • Thread