Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A few code snippets from my Xcode arsenal
Objective-C Mercury
branch: master

Merge pull request #53 from cojoj/patch-1

Add YAML front matter
latest commit a15a6f2cdd
@mattt mattt authored
Failed to load latest commit information.
README.md Adding more details about snippet usage to README
async.m Converting snippets into new format with YAML front-matter
cdfetch.m Converting snippets into new format with YAML front-matter
checkerror.m Converting snippets into new format with YAML front-matter
continuation.m Converting snippets into new format with YAML front-matter
cvds.m Converting snippets into new format with YAML front-matter
documents.m Converting snippets into new format with YAML front-matter
frame.m Converting snippets into new format with YAML front-matter
frc.m Converting snippets into new format with YAML front-matter
frcd.m Converting snippets into new format with YAML front-matter
imv.m Converting snippets into new format with YAML front-matter
init.m Converting snippets into new format with YAML front-matter
library.m Converting snippets into new format with YAML front-matter
lifecycle.m Converting snippets into new format with YAML front-matter
mailcomp.m Converting snippets into new format with YAML front-matter
mark.m Converting snippets into new format with YAML front-matter
nscoding.m Converting snippets into new format with YAML front-matter
nsl.m Converting snippets into new format with YAML front-matter
pdel.m Add YAML front matter
pds.m Converting snippets into new format with YAML front-matter
singleton.m Converting snippets into new format with YAML front-matter
stack.m Converting snippets into new format with YAML front-matter
strongself.m Converting snippets into new format with YAML front-matter
tu.m Converting snippets into new format with YAML front-matter
tvdel.m Converting snippets into new format with YAML front-matter
tvds.m Converting snippets into new format with YAML front-matter
weakself.m Converting snippets into new format with YAML front-matter
xae.m Converting snippets into new format with YAML front-matter
xaf.m Converting snippets into new format with YAML front-matter
xan.m Converting snippets into new format with YAML front-matter
xann.m Converting snippets into new format with YAML front-matter
xat.m Converting snippets into new format with YAML front-matter

README.md

Xcode Snippets

Just a few code snippets I have in my Xcode arsenal. In dotfiles fashion, I thought it'd be cool to put these out in the ether.

Using Snippets

In Xcode 4, open a workspace and toggle the right sidebar to be visible. On the bottom, there is a panel with four icons in the header. Click on the { } icon to open the Code Snippets Library.

Now copy-paste the code from one of these snippets, highlight the code block you just pasted and drag it to the Code Snippet panel. Make sure to match the suggested platform, language, and completion scope. The completion shortcut corresponds to the filename of the code snippet.

Something went wrong with that request. Please try again.