Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using DOM via WebKit from Cocoa



It seems like the only way to learn is to scour the DOM header files and
hope for the best.

Yes, the classes are "documented" in the header files, but not in the Xcode html documentation or Apple developer web site.


However, it is very easy to get to the headers in Xcode: use the cmd- double-click on a symbol to get directly to the header file for it. E.g. get to DOMHTMLElement header @interface, check the methods implemented there, cmd-click on the superclass name right there to navigate the class hierarchy,...


Trying to compare this information to my other DOM
references has so far not been very fruitful.

I have found that the ObjC DOM implementation follows the w3c specs quite well. Reading those specs will help you understand exactly what each method does in ObjC. Note that they deprecated some of the methods in Leopard, to rename them avoiding orphan ':' (very clearly visible in the headers too).


Now, it is true that the functions defined in the specs are quite low- level for DOM access and it is probably up to you to create higher level methods to simplify some frequent patterns in DOM manipulations (sort of making your ObjC version of Prototype or other js framework). But this is a limitation of the DOM specs themselves, not its ObjC implementation.



And if you find a bug, there are still some people working on WebKit, I believe, and they might fix it if you report it ;-)

HTH a little,

charles


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Using DOM via WebKit from Cocoa (From: Keary Suska <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.