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?– IconDaemonMar 23, 2015 at 13:36
-
I mean the demos where they switch away from the Keynote slides and go into Xcode running live.– jobbogamerMar 23, 2015 at 13:39
-
1Without 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?– IconDaemonMar 23, 2015 at 14:24
-
Which WWDC demos are you referring to? They go back to 1995...– bmike ♦Mar 24, 2015 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.– jobbogamerMar 24, 2015 at 14:38
3 Answers
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. Mar 23, 2015 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, 2015 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.– gprasantFeb 3, 2017 at 18:10
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. Mar 23, 2015 at 14:46
They could be using an app that binds keyboard shortcuts to multiple clipboards, such as CopyClip.