Peel apple, cut into dices. Chop onion, mix with flour, fry in a part of butter, then add apple, cover with a lid and stew until softens. Pour cognac, cook down, add cream, cheese and stir up.
Cook macaroni in a large amount of salted water, cast in a colander, when water drains, stir with prepared sauce.
Cut gammon into cubes, fry in the remaining butter until crisp.
Put macaroni with the sauce on a platter and season with gammon cubes.