xcode templates

7
Xcode Templates for Stupid Tricks By Jeremy Rand

Upload: jeremyrand

Post on 08-Aug-2015

231 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Xcode templates

Xcode Templates for Stupid Tricks

By Jeremy Rand

Page 2: Xcode templates

Why Create Xcode Templates?

• If you always add the same files to a new project once you create it.

• If you always change/remove something from a new project after you create it.

• If you want to define your own templates for new files.

Page 3: Xcode templates

Why Did I Create Xcode Templates?

Nostalgia??

Page 4: Xcode templates

Creating Xcode Project Templates

• Put the templates in ~/Library/Developer/Xcode/

• In that directory, you can create a directory to group your project templates together

• Each template should then have a directory named <templateName>.xctemplate

• Inside that directory, you need a TemplateInfo.plist

• More info about customizing your template:

• http://stackoverflow.com/questions/15491826/how-to-create-project-templates-in-xcode-4

• More to see in the demo…

Page 5: Xcode templates

Creating Xcode File Templates

• Put the templates in ~/Library/Developer/Xcode/File Templates

• In that directory, you can create a directory to group your file templates together

• Each template should then have a directory named <templateName>.xctemplate

• Inside that directory, you need files called TemplateInfo.plist, TemplateIcon.png, [email protected] and ___FILEBASENAME___.<extension>

• More info about customizing your file template:

• http://www.bobmccune.com/2012/03/04/creating-custom-xcode-4-file-templates/

• More to see in the demo…

Page 6: Xcode templates

Demo Time

Page 7: Xcode templates

If You Want to Code for the Apple //

• Grab the tools and the Xcode templates from here:

• https://github.com/jeremysrand/Apple2BuildPipeline

• Get the Apple 2048 source code from:

• https://github.com/jeremysrand/apple2048

• Get the CurtaSim source code from:

• https://github.com/jeremysrand/CurtaSim

• Go to KansasFest 2015 because … Apple //

• http://www.kansasfest.org