Merge pull request #36 from objc-zen/AddP_Prefix

Use 'p_' prefix for private methods.
This commit is contained in:
Alberto De Bortoli
2016-08-06 09:55:16 +02:00
committed by GitHub
+2 -2
View File
@@ -962,7 +962,7 @@ Your method may require some parameter to satisfy certain condition (i.e. not to
### Private methods
Never prefix your private method with a single underscore `_`, this prefix is reserved by Apple, doing otherwise expose you to the risk of overriding an existing Apple's private method.
Never prefix your private method with a single underscore `_`, this prefix is reserved by Apple, doing otherwise expose you to the risk of overriding an existing Apple's private method. A recommended approach is to use the `p_` prefix (e.g. `p_privateMethod`).
## Equality
@@ -2077,7 +2077,7 @@ A simple component using weak objects to achieve multiple delegation:
}
}
- (void)_notifyDelegates {
- (void)p_notifyDelegates {
...
for (ZOCWeakObject *object in self.delegates) {
if (object.object) {