Important: The information in this document is obsolete and should not be used for new development.
CountCollectionOwners
You can use theCountCollectionOwners
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
TheCountCollectionOwners
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 theDisposeCollection
function, which is described on page 5-55.