[Accessibility-ia2] IEnumVARIANT vs arrays

Pete Brunet pete at a11ysoft.com
Mon Mar 5 01:36:54 UTC 2012


IATable2::selectedCells/Columns/Rows returns an array but the proposed
new methods:

https://wiki.mozilla.org/Accessibility/IA2_1.3#Relations
https://wiki.mozilla.org/Accessibility/IA2_1.3#Hyperlinks_from_hypertext

specify the return of an IEnumVARIANT. 

What is the reasoning for that?  With the IEnumVARIANT you have to fetch
the count (so you can allocate an array), the enumerator, and then the
elements, taking at least three calls (or more if you want to fetch the
elements one at a time).  With the alternative approach we had used for
IATable2 there is only one call.

-- 
*Pete Brunet*
                                                                
a11ysoft - Accessibility Architecture and Development
(512) 467-4706 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), ptbrunet at live.com (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/accessibility-ia2/attachments/20120304/334262cb/attachment.html>


More information about the Accessibility-ia2 mailing list