Whether the object can become the first responder.
Optional
appearanceThe desired appearance of the app.
Optional
appThe icon for the app.
A delegate object to receive lifecycle notifications.
Whether the current app is the active app.
Whether the app is currently hidden.
Whether the main loop is currently running.
Optional
keyThe key window, which gets input events.
Optional
mainThe main window of the application.
Optional
modalThe modal window being displayed, if it exists.
Optional
nextThe next responder in the responder chain.
A list of all windows in the application.
The connection to the window manager for the app.
Static
sharedThe CCApplication instance for the current app.
Returns the first event in the queue which matches the specified name.
The event name to match
Whether to pop the event from the queue
The matching event, or null if not found
Runs a modal event loop for a window, pausing event processing until the window is closed and the modal state is cleared.
The modal window to show
A response code indicating how the modal exited
Shows an About window for the app.
Optional
options: {Any options to pass to the window
Stops a modal event loop in progress.
Optional
code: ModalResponseIf specified, a code to return from runModal
Attempts to call the specified method on the object, passing the call on to the next responder if this object doesn't implement it.
The name of the method to call
Any parameters to pass to the method
Whether a responder was able to respond to the method
Checks whether the passed object can become the first responder from the specified event.
The object to check
The event that was sent
Whether the object is allowed to be the first responder
The CCApplication class is the main class that controls the app run loop, handles events, and manages the lifecycle of the program.