What's your Objective-C coding style?
The first thing I do when I incorporate any third party code into my application is reformat it to my personal coding preference:

    // 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;
    
    }

What OCD coding format do you use?




What's your Objective-C coding style?
===

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

    // 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;
    
    }

What OCD coding format do you use?



