Jamie, Since the server allocates the array, are there any issues for AT
regarding the method I proposed?  99% of the time the array will hold
one accessible.  Sometimes the number will be higher but if you only
want one you can just access the first one in the returned array.  If
you want all or some of them you'll know how many there are.  I'd like
to keep all the array access methods consistent unless there is a reason
not to.

Pete

On 3/5/12 2:57 PM, James Teh wrote:
> On 6/03/2012 2:27 AM, Pete Brunet wrote:
>> HRESULT IAccessible2_2::targetsByRelationType (
>>    [in] BSTR type,
>>    [out, size_is(,*nTargets)] long **targets,
>>    [out, retval] long *nTargets )
>> This does not have the extra [in] count parameter Jamie proposed so the
>> client doesn't need to know before the call how many targets there are.
> As I explained before, the point of the requestedTargets count
> parameter I proposed was to allow the client to only retrieve the
> first n targets if desired. As I noted, if requestedTargets is 0, the
> client is requesting all relations, so the client doesn't need to know
> how many targets there are in advance. nTargets always returns the
> number of targets in the array, so if requestedTargets > nTargets, it
> doesn't matter; the client should just use nTargets always once the
> call returns.
>
> So, to get just the first target, a client would call with
> requestedTargets=1. If there are no targets, nTargets would be 0 and
> the targets array would be empty or NULL. If there is at least one
> target, nTargets would be 1 and the targets array would contain one
> entry.
>
> Jamie
>

-- 
*Pete Brunet*
                                                                
a11ysoft - Accessibility Architecture and Development
(512) 467-4706 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), [email protected] (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2

Reply via email to