It's from the book The Making of Star Trek. I thought that it was decades ago (long before the internet) that I read that. Here is the relevant passage from Memory Alpha with more info for context:
*The 1968 reference book The Making of Star Trek (page 194), gave this early description of the photon torpedo: "...photon torpedoes, which are energy pods of matter and anti-matter contained and held temporarily separated in a magno-photon force field. These can be used as torpedoes or depth charges, and can be set with electrochemical, proximity, and a variety of other fuses. Photon torpedoes can be fired directly at a target, laid out as a minefield, or scattered in an attacker's path as depth charges." However, the earlier 1967 episode "Obsession" seemed to contradict the whole notion that there was antimatter in these photon torpedoes. In the story, the Enterprise crew attempt to destroy the Dikironium cloud creature by exploding photon torpedoes inside it, when that had no effect, they turn to the most powerful weapon available at that time: an ounce of antimatter to produce a matter-antimatter blast to destroy the creature.
The idea that the photon torpedoes themselves had physical missile-like casing was never confirmed on screen during The Original Series. The idea of distinct "launchers" (or "tubes") for the torpedoes was first introduced in the second season episode, "The Changeling", as "torpedo number 2" was fired instead of just a "torpedo bank being discharged". Even as late as Star Trek: The Motion Picture, Andrew Probert did not envision the photon torpedo to be a capsule, as he says in his 2005 Trekplace interview: "I envisioned them as what we saw during the TV era, they were glowing globs of plasma or some sort of energy. They weren't giant capsules. I envision them as big, glowy, dangerous blobs of... scariness."
Photon torpedoes were definitely weapons with physical missile casings by the time of the 1982 feature film Star Trek II: The Wrath of Khan. Furthermore, the special effect of a torpedo launched with a warhead and one launched as a coffin was completely different in the film. The first on-screen connection between photon torpedoes and antimatter came in 1989, in the second season episode "Samaritan Snare" of Star Trek: The Next Generation and it was not established until 1991, in the fourth season episode "Half a Life", that photon torpedoes had in fact deflector shields of their own.*
That example they sight as an indication that there is no anti-matter in a photon because they used anti-matter to kill the cloud creature in Obsession is bogus. They couldn't kill it in space because the creature knew they were attacking it and changed its form to be unharmed by the weapons. On the planet when it went for the bait it had to change to a form that could interact with material objects and was then vulnerable to the explosion.