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

Re: Getting content out of a WebView


  • Subject: Re: Getting content out of a WebView
  • From: Colin Cornaby <email@hidden>
  • Date: Tue, 22 Sep 2009 19:47:05 -0700

I don't have example code handy, but I'd try parsing the DOM tree, which is abstracted by a series of Obj-C WebView classes.

On Sep 22, 2009, at 5:53 PM, Eddie Aguirre wrote:

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

_______________________________________________

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


References: 
 >Getting content out of a WebView (From: Eddie Aguirre <email@hidden>)

  • Prev by Date: Re: NSArrayController & bindings: next hurdle.
  • Next by Date: Re: Stability on Snow Leopard
  • Previous by thread: Getting content out of a WebView
  • Next by thread: Re: Getting content out of a WebView
  • Index(es):
    • Date
    • Thread