• 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
Re: How to get selected text in a WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get selected text in a WebView


  • Subject: Re: How to get selected text in a WebView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 5 Oct 2010 20:57:03 +0700

On 5 Oct 2010, at 17:56, "Gary L. Wade" <email@hidden> wrote:

> Was there a problem with what dr.text or [dr toString] returned after your
> first line?

There was not  (and now that I tried it: there is not) - but there was (and is) a problem with the documentation:
Xcode only shows me the "DOMRange Additions Reference", which does only mention the additions, but not the basic stuff.
When I look into the header, I see all sort of useful things.

So: is there some documentation about DOMRange somewhere?

Anyway, thanks very much for telling me about this.

Kind regards,

Gerriet.

>
> On 10/04/2010 12:15 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>> I have a Webview, and I want to do something with the selected text.
>>
>> I tried:
>> DOMRange *dr = [ webView selectedDOMRange ];
>> NSString *m = [ dr markupString ];
>> this contains the selected characters, but buried in lots of markup language.
>> But I just want the characters.
>

_______________________________________________

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: Checking for nil-return
  • Next by Date: RE: Confused about floats
  • Previous by thread: Re: How to get selected text in a WebView
  • Next by thread: Instantly delete a directory without recursion?
  • Index(es):
    • Date
    • Thread