A simple Objective-C Finite State Machine implementation