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.
如果我使用一个NSTask启动的对象,是否可以获得任务调用的进程?例如,终端这样做是为了在标题栏中显示它:
NSTask
如何获取由NSTask's 进程调用的进程?
您可以访问[task launchPath]然后分析您获得的字符串。
[task launchPath]