Inspector Events

I’m looking to find out how one goes about creating events for the Inspector.
I want to detect when the editor user has changed a EnumDrop down field.

When they change the selection, the script would add and remove components based on the selection.

I.e When Item Type is iMaterial than removeComponent scWeapon and addComponent scMaterial.

I found a post that seem to mention that creating new events should be possible, but I haven’t been able to find any examples to learn from.

I presume it will require a customEditor which I’ve started, but I’m not sure how to make an event to detect a change in the inspector, specifically a particular dropdown field.

Any ideas on how I go about this?

Just found this U3d Answer that has what I’m looking for.