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

This email sent to [email protected]

Reply via email to