Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请给我一些关于如何工作的提示,更实际的是,从 Mac 上用 C++ 编写的原始控制台应用程序处理 Apple 事件。我知道 Cocoa 中有用于此目的的巨大基础设施,但我认为这只是一个包装器。可能是不可能的?
它有 C API:
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Open_Scripti_Architecture/Reference/reference.html
和
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Apple_Event_Manager/Reference/reference.html
概述:
http://developer.apple.com/legacy/mac/library/#documentation/AppleScript/Conceptual/AppleEvents/intro_aepg/intro_aepg.html
但是正如你所看到的,Apple 现在认为这是遗留问题,所以对于一个新项目,使用 Objective-C API 可能是更好的选择。