TQ3ElementCopyReplaceMethod
You can define a method to copy the data of your custom element type when an element of that type is being replaced by another element of that type.
typedef TQ3Status (*TQ3ElementCopyReplaceMethod) ( const void *fromAPIElement, void *ontoInternalElement);
fromAPIElement- A pointer to the element data associated with an element having your custom element type.
ontoInternalElement- On entry, a pointer to an empty, zeroed block of memory large enough to contain the element data associated with an element having your custom element type.
DESCRIPTION
YourTQ3ElementCopyReplaceMethodfunction should copy the element data pointed to by thefromAPIElementparameter into the location pointed to by thetoInternalElementparameter. This method is called whenever theQ3Set_AddorQ3AttributeSet_Addfunction is used to replace an element of your custom type in a set. ThefromAPIElementparameter contains the same data pointer that was passed toQ3Set_AddorQ3AttributeSet_Add. TheontoInternalElementparameter is a pre-existing block initialized by yourTQ3ElementCopyAddMethodorTQ3ElementCopyDuplicateMethodmethod.RESULT CODES
YourTQ3ElementCopyReplaceMethodfunction should returnkQ3Successif it is successful andkQ3Failureotherwise.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help