Re: NSTextView's MarkedText
Re: NSTextView's MarkedText
- Subject: Re: NSTextView's MarkedText
- From: Fritz Anderson <email@hidden>
- Date: Tue, 23 Jul 2013 10:05:25 -0500
If I understand your need, -[NSLayoutManager drawBackgroundForGlyphRange:atPoint:]?
— F
On 23 Jul 2013, at 9:55 AM, Gordon Apple <email@hidden> wrote:
> Ok, so that¹s out. I could create a custom attribute which would work as I
> described, but I¹m not clear on what NSLayoutManager background method(s) I
> would need to override to implement this.
>
>
> On 7/22/13 7:30 PM, "Ken Thomases" <email@hidden> wrote:
>
>> I don't think you should attempt to use marked text for this purpose.
>>
>> Your code would not normally control which text is marked. This is normally
>> controlled by Cocoa and/or the input method. The text view implements the
>> methods of the NSTextInputClient protocol and through those methods, the
>> framework tells it which text should be marked and when the marking should be
>> cleared.
_______________________________________________
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