Hello again,

it turns out that the WebKit.framework includes the header for DOMDocument. Nonetheless, I seem to be unable to get anything out of the DOMDocument but (null).

Any other ideas?

Thanks,

Rainer


On Jan 29, 2010, at 15:30 , Jens Alfke wrote:


On Jan 29, 2010, at 12:33 PM, Rainer Standke wrote:

NSLog(@"%@", [frame.DOMDocument.characterSet class]);
I get an error: request for member 'characterSet' in something not a structure or union

You may need to #import the header for DOMDocument.

As far as I can tell I am trying to use Javascript here, no?

No, the DOM API is platform-independent and you can access it from Objective-C too. But yes, it is the same API and objects that JavaScript running on those pages would access; this can be very useful when making mixed web/native apps.

—Jens

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to