https://developer.apple.com/library/archive/documentation/General/Conceptual/Devpedia-CocoaApp/ApplicationObject.html#//apple_ref/doc/uid/TP40009071-CH10-SW1
<aside> ๐ญ Index
</aside>
์ฑ ์ค๋ธ์ ํธ์ ์ญํ
An application object is responsible for the initial routing of user events and overall management of a running application.
์ฑ์ด ์ฒ์ ์คํ๋๋ฉด main ์์ application object ์ ์์ฑํ๋ค.
When an application is launched, it creates the application object in itsย
mainย function.
์ฑ์ ๋ฉ์ธ ์ด๋ฒคํธ ๋ฃจํ์์, ์ฑ ์ค๋ธ์ ํธ๋ ๋ค์ด์ค๋ ์ด๋ฒคํธ(user action) ๋ฅผ ์ทจํด์ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ๋ทฐ๋ฅผ ํฌํจํ๋ ์๋์ฐ์ ๋ณด๋ธ๋ค.
Within an applicationโs main event loop, the application object takes an incoming event (representing a user action) and routes it to the window containing the view that is the focus of the action.
์ปจํธ๋กค์ ์ฑ ์ค๋ธ์ ํธ๋ก ์ก์ ๋ฉ์์ง๋ฅผ ๋ณด๋ธ๋ค.
์ฑ ์ค๋ธ์ ํธ๋ ์ก์ ๋ฉ์์ง๋ฅผ ๋ฐ์์ ์ ์ ํ ํ๊ฒ์ ํฌ์๋ฉ ํด์ค๋ค.