a set of usefull code snippets for xcode