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.
Just copy the snippets to ~/Library/Developer/Xcode/UserData/CodeSnippets/
.
Alternatively, use the Install System Plugin tool and double-click the codesnippet files.