Well, I'm completely new to obj-c + cocoa, so this is probably obvious, but here goes:
I switched from command line applications to cocoa applications, learning how to work with objective-c in Xcode. One thing that I really don't understand is the role of AppDelegate and how it connects to main.m
It seems you could put your whole program in appdelegate, and it would work fine, and you don’t even need main.m, but not vice versa, if you are creating a cocoa application you should at least have appdelegate.
I have done a lot of web development and php command line tools, so I assume that I am looking for a file that the program will execute first and is designed to “manage” the rest.
Can someone help me understand what is happening in the cocoa program, like AppDelegate and main.m (or not related), and what should be the program flow?
objective-c cocoa delegates
Andrew
source share