Carbon


Optional Return Value Constants

Header: Collections.h

enum {
    dontWantTag = 0,
    dontWantId = 0,
    dontWantSize = 0,
    dontWantAttributes = 0,
    dontWantIndex = 0,
    dontWantData = 0
};

Many of the Collection Manager functions return multiple pieces of information. For most of these functions, you can specify that you do not want a specific piece of information to be returned by specifying NULL for the corresponding parameter when calling the function.

The Collection Manager provides the optional return value constants to make your code easier to read when specifying that you are not interested in obtaining certain types of information. You can use these enumeration constants in place of the more generic constant NULL when specifying that you do not want to receive certain optional return values from a function.


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