• 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: NSTextView's MarkedText
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSTextView's MarkedText (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Leak when "drawing too fast"
  • Next by Date: Re: Leak when "drawing too fast"
  • Previous by thread: Re: NSTextView's MarkedText
  • Next by thread: Re: NSTextView's MarkedText
  • Index(es):
    • Date
    • Thread