-
Notifications
You must be signed in to change notification settings - Fork 421
What is CAWindow?
In CrossApp, window is created when application starts, here the window is invisible and is only ‘visible’ on screen when you add multi views on it in application. In another word, window is a carrier / container of all displays interfaces, without it screen will display nothing. We know that CAWindow is a special child class of CAView according to API documents of CrossApp, so we can add more views on window to display. CrossApp requires our program has at least one window, and generally there is only one existed window. But system only permits one window to undertake screen event even if there are multi window existed.
It will have two classes by default in Classes directory: AppDelegate and FirstViewController, after we run the new project. Now we open AppDelegate.cpp and create a window for application start via factory method create () in createWindow method.
Open AppDelegate.cpp and find the below codes,
Our just created window is running.