Core and dice the apples with the skin still on.
Remove the outer layer of the onion and dice.
Dice with the skin still on.
Add the apple and half the vinegar to a saucepan and simmer until soft.
Add the onion, tomato and other ingredients except for the sugar and simmer on a low heat for 30 minutes.
Add the sugar and mix. Simmer on a low heat for 20 to 30 minutes.
When cooked leave to rest for one night.
Store in the fridge.