Ruby-style enumeration in Objective-C.