Re: NSTextView's MarkedText
Re: NSTextView's MarkedText
- Subject: Re: NSTextView's MarkedText
- From: Ken Thomases <email@hidden>
- Date: Mon, 22 Jul 2013 19:25:34 -0500
On Jul 22, 2013, at 5:38 PM, Gordon Apple wrote:
> Extensive Googling has not produced an answer. What is a MarkedText
> attribute? Is setting a background with markedText the same as just setting
> the (selected) text background? Or does markedText take precedence over (or
> overlay) text background? Is this permanent or temporary, i.e., does the
> marked text attribute get archived with the attributed string? Is
> markedText simply a way to categorize marking attributes, so that they can
> easily be identified and cleared from the text?
Marked text is used with dead keys and some input methods that compose characters from multiple keystrokes. For example, with the U.S. keyboard layout, if you type Option-E, you get a dead acute accent (´). If you then type "o", you get "ó". Prior to typing the "o", the accent is "marked" to indicate that it is not final and will combine with the next character you type (if possible). The marking consists of applying the marked-text attributes.
Regards,
Ken
_______________________________________________
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