17

During demos in the WWDC videos, the presenter will often paste code into Xcode to save having to type it in. How are they pasting each different snippet without switching to another app to copy it?

  • Without evident, I can only assume that the presentation is preconfigured and it only looks as if the snippets are pasted in. Perhaps they use Keynote? – IconDaemon Mar 23 '15 at 13:36
  • I mean the demos where they switch away from the Keynote slides and go into Xcode running live. – jobbogamer Mar 23 '15 at 13:39
  • 1
    Without any evidence, I'm assuming other folks behind the scenes are doing the cutting and pasting. With Apple Remote Desktop, it's easy to control a user's session while allowing that user to maintain control themselves. Perhaps a wizard behind a curtain is pasting in code when cued, and that would look as if the code just 'appears' in Xcode. Is the presenter actually pressing some keys to paste the code? If you would, please give a link to a demo which shows this in use. I'm intrigued. I use ClipboardHistory which can store many copied items. Perhaps they use that? – IconDaemon Mar 23 '15 at 14:24
  • Which WWDC demos are you referring to? They go back to 1995... – bmike Mar 24 '15 at 12:21
  • The specific one that prompted me to ask the question was I saw it a couple of times in the 2012 video "Introducing Collection Views". I'm afraid I can't remember the exact time it occurs. I have also seen it quite a few other times, in various WWDC videos. – jobbogamer Mar 24 '15 at 14:38
19

Apple used custom code called "Demo Monkey" whose source code is available on GitHub.

  • Looks like this is it, thanks! In fact I think I remember very briefly seeing some kind of banana icon in the presenter's dock, which fits with the name Demo Monkey. – jobbogamer Mar 23 '15 at 19:07
  • There is no icon in the project, but I could understand removing the artwork before releasing it as open source. – Ɱark Ƭ Mar 23 '15 at 20:46
  • @jobbogamer did you figure out how to use the Demo Monkey application ? I couldn't figure out from the readme how it works. – gprasant Feb 3 '17 at 18:10
1

You can create custom Xcode snippets. Snippets can include from one method to whole program.

Check this article on NSHipster, for me is one of the best explanations of this that I found.

  • It seems like there would be some visible action on-screen if that were the case, such as the autocomplete box appearing, since there doesn't seem to be a way to bind a keyboard shortcut to a snippet. – jobbogamer Mar 23 '15 at 14:46
0

They could be using an app that binds keyboard shortcuts to multiple clipboards, such as CopyClip.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .