If I understand your need, -[NSLayoutManager 
drawBackgroundForGlyphRange:atPoint:]?

        — F

On 23 Jul 2013, at 9:55 AM, Gordon Apple <[email protected]> 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 protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to