Deprecated attribute

Deprecated attribute ? Is there such in Xojo ?Which I could perhaps put on a plugin method ?

Thanks

you can do it in a plugin. REALattribute is there.

static REALattribute DeprecatedAttributes[]={
{ “Deprecated”, ““NewClassName”” }
};

and

DeprecatedAttributes,
sizeof(DeprecatedAttributes) / sizeof(REALattribute), 

in class definition.

basically the same for methods

typedef struct
{
REALproc function;
REALproc setterFunction;
const char *declaration;
uint32_t mFlags;
size_t attributeCount;
REALattribute *attributes; // <<<<<<<<<<<<<<<<<<
} REALmethodDefinition;

Thanks