Important: The information in this document is obsolete and should not be used for new development.
CountCollectionOwners
You can use theCountCollectionOwnersfunction 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
TheCountCollectionOwnersfunction 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
CloneCollectionfunction, which is described on page 5-56. To decrement the owner count of a collection object, use theDisposeCollectionfunction, which is described on page 5-55.