I know that nil
object does not received message.
but dealloc is not.
exam code is here.
Book *theLordOfTheRing = [[Book alloc] init];
...
NSLog(@"title: %@", theLordOfTheRing.titleName);
theLordOfTheRing.titleName = nil;
[theLordOfTheRing setTitleName:[theLordOfTheRing.titleName stringByAppendingString:@" vol.4"]];
NSLog(@"title: %@", theLordOfTheRing.titleName);
[theLordOfTheRing.titleName dealloc]; //Build is fine with this line.
----- console----
title: The Fellowship
title: (null)
stringByAppendingString:
message is not worked
but dealloc
is worked.
why does work 'dealloc' to nil
object?