MAC COCOA call command 调用终端控制台程序 STEP 1 先写一个C++ DOS程序 STEP2 使用NSTask来运行,然后用NSPipe和 NSData来接受运行的结果字符串. 先写一个函数: /******************************* Function : NSTask Class + Terminal(=Windows Command) of MAC OS X Description : $ ./test_was_call_command_ap…
How an Event Enters a Cocoa Application An event is a low-level record of a user action that is usually routed to the application in which the action occurred. A typical event in OS X originates when the user manipulates an input device attached to a…