OS X: Indentation and syntax

These set of patches updates some OS X code to use more modern Objective-C syntax, as well as intending the code.