• 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
Double Clicks in an NSTextView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double Clicks in an NSTextView.


  • Subject: Double Clicks in an NSTextView.
  • From: Тимофей Даньшин <email@hidden>
  • Date: Thu, 2 Apr 2009 03:27:25 +0400

Hello.

I would like to be able to intercept double clicks on the text in an NSTextView even if the text is not a link and is not in an NSTextAttachmentCell. I did try to do this by implementing the textView: willChangeSelectionFromCharacterRange: toCharacterRange and comparing the initial and the proposed ranges and the time between the current call to this method and the previous one. But that doesn't work quite well, for i often get "double clicks" when i select the text by holding shift and an arrow key.

I know, that the method for intercepting double clicks is private.

Is there any working work around for that?

Thank you for your replies in advance.


Timofey. _______________________________________________

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: Double Clicks in an NSTextView.
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: Why does -[NSURLConnection start] crash?
  • Next by Date: Line height of drawWithRect:options: seems a bit messed up
  • Previous by thread: Re: Why does -[NSURLConnection start] crash?
  • Next by thread: Re: Double Clicks in an NSTextView.
  • Index(es):
    • Date
    • Thread