Some objective-c snippets