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
Data Types


Attributes Masks

The Collection Manager provides four convenient attributes masks that you can use when specifying attributes for any of the attribute-related Collection Manager functions:

enum {
   noCollectionAttributes = 0x00000000,  
   allCollectionAttributes = 0xFFFFFFFF,  
   userCollectionAttributes = 0x0000FFFF,  
   defaultCollectionAttributes = 0x40000000  
};
Constant descriptions

noCollectionAttributes
Specifies a mask in which all collection attributes are clear. You might use this constant when clearing all the attributes of an item or when testing whether all of an item's attributes are clear.
allCollectionAttributes
Specifies a mask in which all collection attributes are set. You might use this constant as a mask to indicate that you want to edit or test every attribute of an item, or you might use it to set every attribute of an item.
userCollectionAttributes
Specifies a mask in which the user attributes are set and the reserved attributes are clear. You might use this constant as a mask to indicate that you want to edit or test only the user attributes of an item, or you might use it to set every user attribute of an item.
defaultCollectionAttributes
Specifies a mask in which the persistent attribute is set and all other attributes are clear. You might use this constant when testing to see if an item's attributes have been edited.
You can also use the attribute bit masks, described on page 5-52, as masks for individual attributes.

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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996