How to Make a Basic Finite State Machine in Objective-C

后端 未结 5 2015
长发绾君心
长发绾君心 2020-12-07 17:45

I am attempting to build an FSM to control a timer in (iphone sdk) objective c. I felt it was a necessary step, because I was otherwise ending up with nasty spaghetti code c

5条回答
  •  攒了一身酷
    2020-12-07 18:40

    I'd suggest checking out Statec it's got a nice little dsl for doing FSM and outputs ObjC code. It's sort of like mogenerator for state machines.

提交回复
热议问题