//
// main.m
// Hostile
//
// Created by Besleaga Alexandru Marian on 10/20/21.
//
// #import <Cocoa/Cocoa.h>
@interface NSObject
@end
@interface NSResponder : NSObject
@end
@interface NSEvent : NSObject
@end
@interface NSView : NSResponder
@end
@interface NSWindow : NSResponder
@end
@interface NSApplication : NSResponder
@property(class, readonly, strong) __kindof NSApplication *sharedApplication;
- (void)run;
- (void)stop:(id)sender;
- (void)terminate:(id)sender;
- (void)sendEvent:(NSEvent *)event;
@end
typedef int *NSApp;
int NSApplicationMain(int argc, const char * _Nonnull *argv);
int main(int argc, const char * argv[]) {
@autoreleasepool {
// Setup code that might create autoreleased objects goes here.
}
return NSApplicationMain(argc, argv);
}
My questions is the following : If I have a Main file, I want to remove the Main file and see the NSWindow the Window on the display from the code that I'm programming. Where should I search in the documentation to solve these issue ?