copy on iPhone
copy on iPhone
- Subject: copy on iPhone
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 21 Jan 2010 13:07:07 +0700
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 เ%[...]E0¸™";
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@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