Here's an approach that helped me find some serious bugs in my memory alert handlers.
First, I went to the OS X keyboard settings and assigned a shortcut to Simulate a memory warning :

Then, when I started the application in the simulator, I pressed these buttons , so that the Simulator generates dozens of memory alerts per second . By doing this, I would bypass the application. Of course, this rarely happens in the real world, but this stress test helped identify some synchronization, callback, and state issues that I would not have found otherwise.
source
share