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


CountTaggedCollectionItems

You can use the CountTaggedCollectionItems function to obtain the total number of items in a collection that have a specified collection tag.

long CountTaggedCollectionItems(Collection source,
                                CollectionTag tag);
source
A reference to the collection object whose items you want to count.
tag
The collection tag associated with the items you want to count.
function result
The total number of items in the source collection whose collection tags match the value specified in the tag parameter.
DESCRIPTION
The CountTaggedCollectionItems function returns as its function result the total number of items in the source collection whose collection tags match the value you specify in the tag parameter.

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

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

To count all of the items in a collection, use the CountCollectionItems function, described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996