Yup, that did it.  Using the DOM was the way to go.  Thanks guys.

--
Eddie Aguirre
ed...@markzware.com

On Sep 23, 2009, at 8:19 AM, Jens Alfke wrote:


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

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.

WebView doesn't have a notion of updating its data source; it's one- way, like a web browser. If you want to access the current contents, you'll need to do like a web-app and access the DOM. You need to get the document's body's innerHTML property.

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.


—Jens

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to