• 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 on iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSOutlineView + selectionIndexPaths binding
  • Next by Date: Re: Unable to recieve mouse moved events on NSBorderless window
  • Previous by thread: Multiple copies of an application installed
  • Next by thread: Core Data SQLite share hang on 10.6.2
  • Index(es):
    • Date
    • Thread