Blogblog 


30

September '10

Diffing tip for MacVim users

Stick this in your ~/.bash_profile: alias mvdiff=”mvim -R – &>/dev/null” Now, whenever you want to view diffs of changes in your favorite SCM, it’s as simple as doing something like this: hg diff | mvdiff I can’t seem to wrap my head around the fancy diff tools that are out there, and unified diffs + [...]


22

September '10

Custom UIButtons via Subclassing

While working on Capo for the iPhone, I had a need for UIButtons that carried custom state. For instance, the dual-state play/pause button which has highlighted variants for each state. Subclassing UIButton isn’t entirely straightforward, so I figured I’d share my approach for getting this to work. Here’s the code (Note: Requires the iOS 4.0+ [...]


20

November '09

Math and Cocoa

Math and Cocoa A few years ago when I was working on FuzzMeasure, I found myself in need of a math library to work with large data sets, but I didn’t want to deal with building C++ classes to fill out my framework. Ideally, I’d build something that fit in with Cocoa as much as [...]