Minor corrections

This commit is contained in:
Wojciech Nagrodzki 2014-01-13 23:02:29 +01:00
parent 444f9156bb
commit 144376d4e7
Signed by: wnagrodzki
GPG key ID: E9D0EB0302264569
2 changed files with 10 additions and 3 deletions

Binary file not shown.

View file

@ -126,7 +126,7 @@
\tableofcontents
\section{Visual Appearance}
\section{Code Appearance}
Hardly any software is maintained for its whole life by the original author. Writing code in unified way helps engineers to understand it more quickly.
@ -499,8 +499,15 @@ Instance subclasses may be in an inconsistent state during init and dealloc meth
Creating instances of abstract classes can be thwarted with following assertion.
\begin{codelisting}
NSAssert1([self isMemberOfClass:[MyAbstractClass class]] == NO,
@"%@ is an abstract class. Please do not create instances of it.", [self class]);
- (id)init
{
self = [super init];
if (self) {
NSAssert1([self isMemberOfClass:[MyAbstractClass class]] == NO,
@"%@ is an abstract class. Please do not create instances of it.", [self class]);
}
return self;
}
\end{codelisting}