useful snippets for xcode