Summary

That wraps up our look at the roles of the Controller and Application State layers in SproutCore. This included a detailed look at SproutCore's controllers and how we use controllers to mediate between our views and models. We also looked at a detailed example of how we can translate raw data from the Model layer into a useful property for the View layer.

We also learned quite a deal about the statecharts language and looked at several applications of statecharts. Most importantly we learned of the important considerations to observe when diagramming the statechart of your own application, including the most important consideration, keeping states self-contained. Lastly we saw how easily we can transcribe the statechart logic into actual code.

Although statecharts is a complex subject for a beginner's tutorial, I've asserted a few times that SproutCore's role is for developing real software, and real software needs real architecture; so I felt that it was important to include. Hopefully this was a bit of an eye-opening experience and you feel more confident than ever in your ability to deliver world-class software with SproutCore.

In the next chapter, we'll wrap up our discussion with a look at testing, building and ultimately deploying a SproutCore application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.173.242