Drain and save pineapple juice.
Cook apple cider vinegar, egg, flour, sugar and pineapple juice on medium heat for 5 minutes to custard consistency, stirring constantly. Let cool.
Mix apples and pineapple first, then add custard mixture and cool whip. Refrigerate. Add nuts before serving.