Three new things I’ve learned this week

April 23, 2009

I’ve been writing a lot of code lately, which means I’ve had no shortage of “learning opportunities” (or, as some people call them, bugs):

  1. Yesterday I enjoyed learning how to debug an autorelease pool using malloc_history.
  2. Monday I gained a deeper understanding of how Quartz strokes a path and why it would cause your rounded rectangles to become fuzzy at the corners (if you don’t account for the stroke width).
  3. Tuesday I discovered that keeping around a UITableViewCell for resizing calculations can be handy but error-prone.  Hint: if your table view is re-using cells, then your re-sizing calculation code better not depend on the cell’s contents remaining constant between calls.