• 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
copy in WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: copy in WebView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?
  • Next by Date: iOS 6 changes in CATextLayer text drawing
  • Previous by thread: copy in WebView
  • Next by thread: Re: copy in WebView
  • Index(es):
    • Date
    • Thread