• 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: Kyle Sluder <email@hidden>
  • Date: Wed, 24 Jul 2013 15:05:00 -0700

On Wed, Jul 24, 2013, at 02:53 PM, Gordon Apple wrote:
> That link seems to have fallen victim to the outage.
>
> I have added a background setting for selected text.  I suppose I could
> do
> that here, but that would defeat what I am trying to do, which is to be
> able
> to paint the text background (possibly with a Wacom pen) in the same way
> one
> would use a highlighting pen on paper.  Because this is intended for an
> educational presentation system, I would like to be able to do this
> during
> the presentation, then later reset for another class session.  Thus the
> custom attributes, which can all be easily removed with a single button
> click.  The active highlighting works (even the iBeam cursor with color
> patch), but I need the mouseUp (selection ended) to set the custom
> background, remove the custom selection highlighting, revert the cursor,
> etc.  The switching from selection highlighting to custom background
> attribute color completes the illusion.

Have you tried applying the attribute in -mouseUp:, after calling super?

--Kyle Sluder
_______________________________________________

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


  • Follow-Ups:
    • Re: NSTextView's MarkedText
      • From: Gordon Apple <email@hidden>
References: 
 >Re: NSTextView's MarkedText (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: NSTextView's MarkedText
  • Next by Date: Re: NSTextView's MarkedText
  • Previous by thread: Re: NSTextView's MarkedText
  • Next by thread: Re: NSTextView's MarkedText
  • Index(es):
    • Date
    • Thread