I have an application where I have a main.m that returns NSApplicationMain(argc, (const char **) argv);.
main.m
NSApplicationMain(argc, (const char **) argv);
I want to run code on -appl
-appl
Louis' answer is concise and spot-on. However, if the concept of delegate methods is new to you, you'd do well to check out the relevent documenation.