I added // for the #include <Cocoa/Cocoa.h> to start programming the interface of NSApplication
Why did you do that??? to start programming the interface of NSApplication does not make sense.
In modern C (as you can find C99, it is not too modern), you need to import/include the prototype definitions of all functions, before using them. You need to import the prototype definition of NSApplicationMain, if you want to use it. Which is included in <Cocoa/Cocoa.h>.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: