copy in WebView
copy in WebView
- Subject: copy in WebView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 11 Oct 2012 22:26:40 +0700
I have a WebView which displays text which contains some invisible characters (like ZERO WIDTH SPACE).
When I use Edit→Copy these characters are also put on the pasteboard.
But this does not make sense. The pasteboard should contain the selected text without these invisible characters.
How to do this?
Maybe subclass WebView and override copy: ?
Or is there a better or simpler way to do this?
More info:
I subclassed WebView but the copy: method is NOT called when I do Edit→Copy.
The first responder of the window with the WebView is an (undocumented) WebHTMLView → NSControl.
I gave my WebView an UIDelegate which implements webView:shouldPerformAction:fromSender: but this method is never called. Even when I send copy: to my WebView.
So: what to try next?
Gerriet.
_______________________________________________
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