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 / Removing Items From a Collection


You use the EmptyCollection function to remove every item in a collection.

void EmptyCollection (Collection target);
A reference to the collection object you want to empty.
This function removes every item in the collection referenced by the target parameter. This function provides the fastest mechanism for emptying a collection.

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

To remove all of the items in a collection whose attributes match a specified pattern, use the PurgeCollection function, described on page 5-67.

To remove all of the items in a collection with a specified collection tag, use the PurgeCollectionTag function, described in the previous section.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996