Carbon


TogglePB

Header: DateTimeUtils.h

struct TogglePB {
    SInt32 togFlags; 
    ResType amChars; 
    ResType pmChars; 
    SInt32 reserved[4];
};

Field descriptions

togFlags

The high-order word of this field contains flags that specify special conditions for the ToggleDate function. See “Toggle Date Flag Constants” for a description of the values which you can use here.

The low-order word of this field contains masks representing fields to be checked by the ValidDate function. Each mask corresponds to a value in the enumerated type LongDateField. See “Long Date Mask Constants” for a description of the values which you can use in this field. You can set this field to check the era through second fields by using the predeclared constant dateStdMask.

amChars

The trailing string to display for morning (for example, A.M.). This string is read from the numeric-format resource (resource type 'itl0') of the current script system.

pmChars

The trailing to display for evening (for example, P.M.). This string is read from the numeric-format resource (resource type 'itl0') of the current script system.

reserved

Reserved. Set each of the three elements of this field to 0.

The ToggleDate function exchanges information with your application using the toggle parameter block, defined by the TogglePB data type.


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