Cut the apples just before you are ready to cook with them. This will stop the apples from oxidizing and turning brown.