• 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
Getting content out of a WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting content out of a WebView


  • Subject: Getting content out of a WebView
  • From: Eddie Aguirre <email@hidden>
  • Date: Tue, 22 Sep 2009 17:53:08 -0700

I have a simple application which has a WebView and NSTextView and two buttons. Both views are editable. What I'd like to be able to do is edit in either view and then sync with the other view. I can do this in the direction from the NSTextView to the WebView but not vice versa.

I'm able to type some HTML in the NSTextView and have it display in the HTML view. And getting the data from the WebView through the mainFrame and dataSource works for the initial contents but not the edited contents. The dataSource always returns the unedited content. I've tried editing in the WebView then turning off editing thinking that this may be needed to push the changes but with no luck.

I feel like I am overlooking something simple here, but can't seem to find anything in the documentation.

--
Eddie Aguirre
email@hidden

_______________________________________________

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: Getting content out of a WebView
      • From: Jens Alfke <email@hidden>
    • Re: Getting content out of a WebView
      • From: Colin Cornaby <email@hidden>
  • Prev by Date: Re: an app that never quits
  • Next by Date: Re: NSImage rotation regression?
  • Previous by thread: Re: Cocoa-dev Digest, Vol 6, Issue 1355
  • Next by thread: Re: Getting content out of a WebView
  • Index(es):
    • Date
    • Thread