mirror of
https://github.com/wnagrodzki/CocoaProgrammingGuidelines.git
synced 2025-05-06 19:11:47 +02:00
Minor update
This commit is contained in:
parent
83361716ac
commit
512a5d186c
2 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -270,10 +270,12 @@ None of the attributes can be omitted with the exception of readwrite.
|
||||||
@property (weak, nonatomic) id <UITableViewDelegate> delegate;
|
@property (weak, nonatomic) id <UITableViewDelegate> delegate;
|
||||||
\end{codelisting}
|
\end{codelisting}
|
||||||
|
|
||||||
Getters for boolean properties should be renamed as follows.
|
Getters for boolean properties should be renamed as follows if they are adjectives.
|
||||||
|
|
||||||
\begin{codelisting}
|
\begin{codelisting}
|
||||||
@property (assign, nonatomic, getter = isVisible) BOOL visible;
|
@property (assign, nonatomic, getter = isVisible) BOOL visible;
|
||||||
|
@property (assign, nonatomic, getter = isEnabled) BOOL enabled;
|
||||||
|
@property (assign, nonatomic, getter = isTracking) BOOL tracking
|
||||||
\end{codelisting}
|
\end{codelisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue