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 / Cloning and Copying Collection Objects


CountCollectionOwners

You can use the CountCollectionOwners function to determine the number of existing references to a collection object.

long CountCollectionOwners(Collection source);
source
The collection object whose owner count you want to determine.
function result
The owner count of the collection object.
DESCRIPTION
The CountCollectionOwners function returns as its function result the owner count of the collection object referenced by the source parameter.

SEE ALSO
For general information about QuickDraw GX objects, see the chapter "Introduction to QuickDraw GX Objects" in Inside Macintosh: QuickDraw GX Objects.

For examples of this function, see "Cloning or Copying a Collection" on page 5-14.

To increment the owner count of a collection object, use the CloneCollection function, which is described on page 5-56. To decrement the owner count of a collection object, use the DisposeCollection function, which is described on page 5-55.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996