I have put a MyWebView (subclass of UIWebView) into my app.

MyWebView.m only has:
- (void)copy:(id)sender
{
        NSLog(@"%s %@",__FUNCTION__, sender);
        [ super copy: sender ];
}

The problem: this never gets called.

What I am trying to accomplish: 
When the uses presses a link (which in my case are never external links, just 
stuff handled by the webView delegate) a panel comes up with "Open, Copy, 
Cancel". If one selects "Copy" the pasteboard will contain:
"public.url" = applewebdata://....
"public.utf8-plain-text" = 
"applewebdata://D18C1A8A[...]DAC18F6/3%20%E0%B9%80%[...]E0%B8%99";

I would like to change this to be:
"public.utf8-plain-text" = "3 เดือน". (same as the above, but not 
percent-escaped).

So I thought overriding "copy:" would be a good idea.

What can I do to make the pasteboard contain just plain utf-8 text? 

iPhone Simulator 3.1.2


Kind regards,

Gerriet.

_______________________________________________

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