Carbon


Attribute Bit Numbers

Header: Collections.h

enum {
    collectionUser0Bit = 0,
    collectionUser1Bit = 1,
    collectionUser2Bit = 2,
    collectionUser3Bit = 3,
    collectionUser4Bit = 4,
    collectionUser5Bit = 5,
    collectionUser6Bit = 6,
    collectionUser7Bit = 7,
    collectionUser8Bit = 8,
    collectionUser9Bit = 9,
    collectionUser10Bit = 10,
    collectionUser11Bit = 11,
    collectionUser12Bit = 12,
    collectionUser13Bit = 13,
    collectionUser14Bit = 14,
    collectionUser15Bit = 15,
    collectionReserved0Bit = 16,
    collectionReserved1Bit = 17,
    collectionReserved2Bit = 18,
    collectionReserved3Bit = 19,
    collectionReserved4Bit = 20,
    collectionReserved5Bit = 21,
    collectionReserved6Bit = 22,
    collectionReserved7Bit = 23,
    collectionReserved8Bit = 24,
    collectionReserved9Bit = 25,
    collectionReserved10Bit = 26,
    collectionReserved11Bit = 27,
    collectionReserved12Bit = 28,
    collectionReserved13Bit = 29,
    collectionPersistenceBit = 30,
    collectionLockBit = 31
};

The Collection Manager provides the attribute bit numbers enumeration to provide constant names for each of the bits in a collection item’s attributes.

The lower 16 bits of the attributes property of a collection item represent the user-defined attributes. You can use these attributes for any purpose suitable to your application.

The upper 16 bits are reserved for use by Apple Computer, Inc. Currently, the 2 high bits are defined: bit 30 represents the persistence attribute and bit 31 represents the lock attribute.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)