THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/08/2012 at 06:16, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Is there any way to know, inside a TagData plugin that the tag is about to deleted?
Yes. TagData is derived from NodeData, which has a Free() function. The C++ SDK says that Free() is:
'Called when a node instance is deallocated. You can use this to for example deallocate member variables of your node data class.'
So when the tag is about to be deleted, you get a call to Free() which you can override and do what you need. One thing you can't do as far as I can see is actually prevent the deletion.
For when a tag is moved to another object, you would have to poll the tag and check to see if its owner had changed.
Steve