One Quickie


Triggering a low-memory warning on the device (Debugging->General)
You can trigger a low-memory warning in the simulator, but sometimes you use one of the myriad of APIs that aren't supported in the simulator, but you still need to track down something ultimately triggered by a low-memory warning.

Put this somewhere convenient to trigger - in a timer, under a button, or something. Obviously, you don't want to ship with it.

[[UIApplication sharedApplication] performSelector:@selector(_receivedMemoryNotification)];



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com