[Webkit-unassigned] [Bug 8331] DOMNodeLists returned to Objective-C are not properly wrapped
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Sat Jun 24 15:19:51 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=8331
------- Comment #15 from speth at end.com 2006-06-24 15:19 PDT -------
i know it just landed, but if you really don't want to use the objc_getClass
function, we can get rid of it and use the compile-time @compatibility_alias
directive like this:
@compatibility_alias ObjC_DOMNode DOMNode;
then the code below looks like this:
if (value->inherits(&DOMNode::info))
newObj = [ObjC_DOMNode _nodeWith:static_cast<DOMNode
*>(value)->impl()];
this reads cleanly, is checked at compile-time, and @compatibility_alias is
documented at
file:///Developer/ADC%20Reference%20Library/documentation/DeveloperTools/gcc-4.0.1/gcc/compatibility_005falias.html#compatibility_005falias
let me know if you want another patch, otherwise, i'm going to move on with my
life. :)
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list