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 / Editing Item Attributes


SetIndexedCollectionItemInfo

You use the SetIndexedCollectionItemInfo function to edit the attributes of a specific collection item given the item's collection index.

OSErr SetIndexedCollectionItemInfo(Collection target,
                                   long index,
                                   long whichAttributes,
                                   long newAttributes);
target
A reference to the collection object containing the item whose attributes you want to edit.
index
The collection index of the item whose attributes you want to edit.
whichAttributes
A mask indicating which attributes you want to edit.
newAttributes
A long word containing the new settings for the attributes.
DESCRIPTION
The SetIndexedCollectionItemInfo function allows you to edit the attributes of a specific collection item in the collection referenced by the target parameter. You specify the collection item by specifying the item's collection index in the index parameter.

This function copies bit values from the newAttributes parameter to the attributes associated with the specified item.

This function uses the whichAttributes parameter to determine which bits to copy. For every bit in the whichAttributes parameter, this function takes one of two actions:

The whichAttributes parameter allows you to change the values of specific bits in the specified item's attributes without affecting the values of other bits.

RESULT CODES
collectionIndexRangeErr-5752Index is out of range.
SEE ALSO
For information about collection attributes, see "Collection Attributes" beginning on page 5-9.

For attribute-related data types and enumerations, see page 5-49 through page 5-53.

For examples of this function, see "Getting and Setting the Attributes of an Item" beginning on page 5-24.

To edit the attributes of collection item using the collection tag and collection ID (rather than the collection index) to specify the item, use the SetCollectionItemInfo function, described in the previous section.

To examine the attributes of a collection item, use the functions described in "Getting Information About a Collection Item" beginning on page 5-76.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996