Double Clicks in an NSTextView.
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