Hello!
Very noob questions on Mac OS X programming. I want to make a very simple sample application for Mac OS X. Tasks:
1. When enabled, the application sends a command to the terminal. Previously, I did nothing under the desktop, but I understand that in my case I go to AppDelegate.m and write:
<code>-(void)awakeFromNib: { //код для вызова unix-команды }</code>
Interested in the syntax of such code, and in this method to do it or in - applicationDidFinishLaunching:
:?
2. After executing this command, the app should immediately close. In the same method to prescribe - applicationWillTerminate
?
Thanks in advance for the answers.