One Quickie


Eating Brains (Debugging->gdb)
You can turn on Zombies to catch uses of objects after they have been released. Here's an easy way to do it in the gdb console:
  % gdb build/Debug/Snorkfizzle.app/Contents/MacOS/Snorkfizzle
  (gdb) set env NSZombieEnabled=YES
  (gdb) fb -[_NSZombie methodSignatureForSelector:]
  (gdb) run
Then exercise your app and trip the error.



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

webmonster@borkware.com