The second-best use for baked goods is the cinematic pie fight. Getting a whipped cream-topped pie to the face is a great visual, certainly more pleasant than other thrown foods, and doesn't leave major injuries. A timeline of pie fights in movies gives us stories of notorious pie fights. The earliest existing example of the pie in the face is from 1909, followed by a full-blown fight in 1913. Even Dr. Strangelove was supposed to end with a pie fight, but that didn't work out.
So as Kubrick later said, ‘It was a disaster of Homeric proportions.’” Because the scene was so expensive to shoot and clean up from, the studio only gave them one chance to film it. But since the actors were clearly smiling throughout filming, the footage was unusable. The scene has since become one of the most famous unseen pieces of celluloid in cinematic history. Apparently, pie fights make up a majority of that list.
Read the history of pie fights in the movies, with plenty of videos, at Hopes and Fears. -Thanks, Walter Mosley!