O'Reilly logo

Professional Cairngorm™ by Jeremy Wischusen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Main Application Setup

In this chapter you will set up the main application file, as you need a place to test out your views and other Cairngorm classes.

You will start by creating the ModelLocator and FrontController classes.

Then you will set up the namespaces to access your views and FrontController. You must have an instance of the FrontController in the main application in order for other Cairngorm classes to have access to it (the same is true for the ServiceLocator if you are using that), so after creating the appropriate namespaces, you will add these instances to the main application.

Finally, you will create a main application view that will house the other components that you create.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required