McCain used the metaphor first, as Jed Lewison points out. Here's the ad from late June:
See web-only content:
http://www.theatlantic.com/daily-dish/archive/2008/08/obama-on-the-currency/213405/
This article available online at:
http://www.theatlantic.com/daily-dish/archive/2008/08/obama-on-the-currency/213405/
