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.

UIApplicationMain(::::)

์•ฑ์˜ ๋ฉ”์ธ ์ด๋ฒคํŠธ ๋ฃจํ”„์—์„œ, ์•ฑ ์˜ค๋ธŒ์ ํŠธ๋Š” ๋“ค์–ด์˜ค๋Š” ์ด๋ฒคํŠธ(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.

์ปจํŠธ๋กค์€ ์•ฑ ์˜ค๋ธŒ์ ํŠธ๋กœ ์•ก์…˜ ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด๋‚ธ๋‹ค.

์•ฑ ์˜ค๋ธŒ์ ํŠธ๋Š” ์•ก์…˜ ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ›์•„์„œ ์ ์ ˆํ•œ ํƒ€๊ฒŸ์— ํฌ์›Œ๋”ฉ ํ•ด์ค€๋‹ค.