Skip to content
A few code snippets from my Xcode arsenal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
async.m
cdfetch.m
checkerror.m
continuation.m
cvds.m
documents.m
frame.m
frc.m
frcd.m
imv.m
init.m
library.m
lifecycle.m
mailcomp.m
mark.m
nscoding.m
nsl.m
pdel.m
pds.m
singleton.m
stack.m
strongself.m
tu.m
tvdel.m
tvds.m
weakself.m
xae.m
xaf.m
xan.m
xann.m
xat.m

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.

You can’t perform that action at this time.