Objective-C / Cocoa: What is an application proxy object in Application Builder / Nib?

Someone has an easy-to-understand example, why is this application object good? Why is he there? And in what cases do I need it?

+3
source share
1 answer

This is a pointer to a shared NSApplication object. See the Class Reference for everything NSApplication can do, but basically the reason you see it in your IB window, so you can easily set the delegate to your controller object and include menu commands such as terminate :.

+3
source

Source: https://habr.com/ru/post/1704009/


All Articles