Xcode generated this header file based on a template:
// this file is XYZAppDelegate.h
#import <UIKit/UIKit.h>
@interface XYZAppDelegate : UIResponder <UIApplicationDelegate>
....
@end
For the compiler to figure-out what UIApplicationDelegate is, this is how it works?
(1) the entire UIKit framework (UIKit.h) has been imported.
(2) UIApplication.h is one, of many, header files specified in UIKit.h.
(3) the UIApplicationDelegate protocol is then specified in UIApplication.h.
Just for the sake of my understanding, could i write a:
@interface XYZAppDelegate:UIResponder <direct-reference-to-protocol>
maybe, something like:
@interface XYZAppDelegate:UIResponder <UIKit.UIApplication.UIApplicationDelegate>