I've been watching some of the WWDC 2009 videos which include some video demos in Xcode. The presenters are using some sort of macro or script bound to a keyboard shortcut to automatically insert some pre-prepared code at the current caret location. Each time they press the key, the next prepared snippet is inserted.
Does anybody know how this is done?