concept zombie in category ios

appears as: zombies, zombie
Objective-C Fundamentals

This is an excerpt from Manning's book Objective-C Fundamentals.

Detecting object references to dead objects can be difficult, but Instruments and the Objective-C runtime provide a feature called NSZombies, which makes detecting them much easier and ensures they always fail in an identifiable manner. It turns dead objects into zombies. A zombie object is “the living dead.” When the NSZombies feature is enabled, an object that should be deallocated (sent a dealloc message) is instead kept alive in memory. By using some of the dynamic features of Objective-C, the type of the object is modified to be _NSZombie_xxx where xxx is the original class name. The NSZombie class responds to any message sent to an object by logging a message to the console that something has attempted to communicate with an object that wouldn’t exist if the NSZombie feature wasn’t in use.