CallCountProc
TheCallCountProcmethod counts the number of elements of the specified type in the specified container.
void CallCountProc (in ODPart thePart, in ODDescType desiredType, in ODDescType containerClass, in ODOSLToken container, out ODSLong result);
thePart- A reference to a part associated with this semantic interface object.
desiredType- The type of object to be counted.
containerClass- The object class of the container for the desired objects.
container- A reference to an OpenDoc token for the container.
result- The number of objects of the desired type in the container.
DISCUSSION
This method counts the elements in the container whose type matches thedesiredTypeparameter and returns that number in theresultparameter.EXCEPTIONS
The Apple Event Manager may throw an exception if this method is unable to count the specified type of object.This method may throw platform-specific exceptions.
SEE ALSO
TheODDescTypetype (page 925).
TheODOSLTokenclass (page 456).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help