Carbon


Default Routine Flags

Header: MixedMode.h

enum {
    kRoutineIsNotDispatchedDefaultRoutine = 0,
    kRoutineIsDispatchedDefaultRoutine = 16
};

Constant descriptions

kRoutineIsNotDispatchedDefaultRoutine

This routine is not the default routine for a set of routines that is dispatched using a routine selector.

kRoutineIsDispatchedDefaultRoutine

This routine is the default routine for a set of routines that is dispatched using a routine selector. If a set of routines is dispatched using a routine selector and the routine corresponding to a specified selector cannot be found, this default routine is called. This routine must be able to accept the same procedure information for all routines. If possible, it is passed the procedure information passed in a call to CallUniversalProc.

The routineFlags field of a routine record contains a set of flags that specify information about a routine. You can use constants to specify the desired routine flags. Currently, only 5 of the 16 bits in a routine flags word are defined. You should set all the other bits to 0.

In general, you should use the constant kRoutineIsNotDispatchedDefaultRoutine. The constant and kRoutineIsDispatchedDefaultRoutine is reserved for use with selector-based system software routines.


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