Mark A Vitale
Mark A Vitale
# Convention - Properties should maintain state - No mutable collections in properties - Property accessor methods should have minimal, predictable side effects - When overriding the getter, we almost...
# Convention - First letter should be lower case - Use camel case - No underscores - BOOL properties have special names (e.g., `setHidden` & `isHidden:`) - Getters don't begin...
# Convention When there is more than one way to init an object (e.g. initWithFrame, initWithCoder) and these perform common routines (such as setting ivars, sizing, etc.), consider using c-style...
# Convention - Don't make assumptions about a reverse-dependency's implementation. AKA, don't assume NSApp or NSApp's delegate conforms to a given protocol (even checking for conformance is wrong, because you...