Toss the apples with the cider or brandy, vinegar, vanilla, and dark brown sugar, and roast in a heavy pan with a fitted lid, or cover tightly with foil, for 1 hour to 90 minutes. They should offer some resistance when pierced with a fork, but should not break apart. Set the apples aside, and proceed with making the caramel.