Notification center objrct ownership


On page 174, it is stated that notification center holds strong reference to its observers and should remove itself before destroyed. But how can an object receive dealloc message and destroyed if it has a strong reference to it?



Great find! That is actually an error in the book. The sentence should read:

The rest of the paragraph is correct, explaining why this is important.

Also, from the documentation:

Retain and strong mean the same thing.