<p>The first thing I do when I incorporate any third party code into my application is reformat it to my personal coding preference:</p>

<pre><code>// Single line comments only

// I never put spaces inside my parenthesis 
-(void)myOCDMethod
{    
    // If an if or for statement has only one instruction, I don't use brackets
    if(this)
        [self that];
    else
        [self somethingElse];

    // If I do have to use brackets, they go on their own lines so that they line up
    if(this)
    {
        [self that];
        [self andThat];
    }

    // I always put the pointer asterisk next to the instance name
    NSObject *variable = [[NSObject alloc] init];

    // I always put spaces around operators
    if(i == 0)
        x = 2;

}
</code></pre>

<p>What OCD coding format do you use?</p>

I do a lot of this, with a few differences:
I always insert spaces before and after parens:
```
-(void)myOCDMethod   ->   - (void) myOCDMethod
```
I leave braces on the same line:
```
```
if (this) 
{
  //code
}
```
```
becomes
```
```
if (this) {
  //code
}
```
```
If I'm feeling particularly OCD, I'll line up my locals:
```
```
float                l1;
NSArray              *array;
ReallyLongClassName  *object;
```
```
And, finally, TABS, not SPACES.