Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Registering the Commands > Application Facade / initializeController()

Application Facade / initializeController()

Class

ApplicationFacade.as

Method

initializeController()

Responsibilities

We generally register all of the Commands in an overridden ApplicationFacade.initializeController() method since, at a minimum, the StartupCommand must be registered by the ApplicationFacade. However, see Chapter 8 for an example and discussion of why and how you would want to refactor this to a Command.

  • Must call super.initializeController()

  • Call registerCommand() for each Notification / Command pair

  • Only one Command can be registered to a given Notification name, but the same Command can be registered to more than one Notification name


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial