Carbon


DisposeColorPickMethodProcPtr

Header: PictUtils.h Carbon status: Supported

Defines a pointer to a method disposal callback function. Your method disposal function releases the memory for the 'cpmt' resource allocated by your MyInitPickMethodCallback function.

typedef OSErr(* DisposeColorPickMethodProcPtr) (
    UInt32 dataRef
);

You would declare your function like this if you were to name it MyDisposeColorPickMethodCallback:

OSErr MyDisposeColorPickMethodCallback (
    UInt32 dataRef
);
Parameter descriptions
dataRef

A handle to any data your method needs. Your application initially creates this handle using the InitPickMethodProcPtr function.

function result

A result code. If your MyDisposeColorPickMethodCallback function generates an error, it should return the error as its function result. This error is passed back to the GetPictInfo, GetPixMapInfo, or NewPictInfo function, which in turn passes the error to your application as a function result.


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