Re: NSTextView's MarkedText
Re: NSTextView's MarkedText
- Subject: Re: NSTextView's MarkedText
- From: Gordon Apple <email@hidden>
- Date: Thu, 25 Jul 2013 12:55:00 -0500
- Thread-topic: NSTextView's MarkedText
Thanks. That actually worked, at least for standard background drawing. I
thought I had my custom attribute working, but I was mistaken. More work to
do on that. fillBackgroundRectArray:count:forCharacterRange:color: , which
I use for my custom selection highlighting, only gets called for selection
highlighting or if there is a standard background (or markedText) attribute.
I¹m not sure how to get it called for drawing using my custom attribute.
On 7/24/13 5:08 PM, "Quincey Morris" <email@hidden>
wrote:
> On Jul 24, 2013, at 14:53 , Gordon Apple <email@hidden> wrote:
>
>> I need the mouseUp (selection ended)
>
> Why not use the delegate method for detecting a selection change
> (textViewDidChangeSelection) and, using state you save when a pen swipe
> starts, change the attributes on the new selection if the selection change is
> due to a pen swipe.
>
>
_______________________________________________
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