1

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?

Alex Rozanski
  • 37,815
  • 10
  • 68
  • 69
Mike Weller
  • 45,401
  • 15
  • 131
  • 151

1 Answers1

2

I believe the presenters use DemoAssistant which is Apple sample code.

It's a service that copies lines from a code file a line at a time.

Rob Keniger
  • 45,830
  • 6
  • 101
  • 134
  • Thanks, this seems ideal. It only does one line at a time, but I can modify that to insert multiple lines delimited by some string. – Mike Weller Mar 18 '10 at 09:26