mirror of
https://github.com/wnagrodzki/CocoaProgrammingGuidelines.git
synced 2025-05-06 19:11:47 +02:00
Methods can be prefixed with get
This commit is contained in:
parent
a90b08e6fe
commit
157cdf2f4d
2 changed files with 13 additions and 0 deletions
Binary file not shown.
|
@ -447,6 +447,19 @@ In one case bisection is allowed.
|
||||||
\end{codelisting}
|
\end{codelisting}
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Methods can be prefixed with get}
|
||||||
|
|
||||||
|
Get prefix is used only in situations when a value is returned indirectly via a memory address.
|
||||||
|
|
||||||
|
\begin{codelisting}
|
||||||
|
@interface NSValue : NSObject <NSCopying, NSSecureCoding>
|
||||||
|
|
||||||
|
- (void)getValue:(void *)value;
|
||||||
|
|
||||||
|
@end
|
||||||
|
\end{codelisting}
|
||||||
|
|
||||||
|
|
||||||
\section{General rules}
|
\section{General rules}
|
||||||
|
|
||||||
\subsection{Header files are imported only if necessary}
|
\subsection{Header files are imported only if necessary}
|
||||||
|
|
Loading…
Add table
Reference in a new issue