Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 5 - Collection Manager / Collection Manager Reference
Functions / Counting Items in a Collection


CountCollectionItems

You can use the CountCollectionItems function to determine the total number of items in a collection.

long CountCollectionItems(Collection source);
source
A reference to the collection object whose items you want to count.
function result
The total number of items in the source collection.
DESCRIPTION
The CountCollectionItems function returns as its function result the total number of items in the collection referenced by the source parameter.

SEE ALSO
For information about collection items, see "Collection Items" beginning on page 5-8.

For examples using this function, see "Adding Items to a Collection" beginning on page 5-17.

To count the items in a collection that have a specified collection tag, use the CountTaggedCollectionItems function, described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996