如何在 OSX 中为命令行工具制作 GUI 前端? [英] How can I make a GUI frontend to a command line tool in OSX?
问题描述
我很想知道如何在 OSX 中为 ffmpeg 和 jhead 制作 GUI.我一直在寻找解决方案一段时间,并认为你,stackoverflow 的用户,可以帮助我.也许您知道一些我没有遇到过的文档,或者更好的是制作 GUI 的教程.
I'm dying to know how I can make a GUI for ffmpeg and jhead in OSX. I've been looking for a solution for a while and thought you, stackoverflow's users, could help me. Maybe you know some document I haven't come across of or, better, a tutorial to make a GUI.
我喜欢这两个工具,但我喜欢拖放操作的简单性.
I love those two tools but I like the simplicity of drag/drop operations.
注意:我不需要他们的 GUI,我想做一个.
Note: I don't need a GUI for them, I want to make one.
推荐答案
Cocoa Dev Central 站点上有一个使用 NSTask 封装命令行工具的教程:
There is a tutorial for wrapping command-line tools using NSTask, on the Cocoa Dev Central site:
现在已经有几年了,但应该可以帮助您入门.
It's a few years old now, but should get you started.
这篇关于如何在 OSX 中为命令行工具制作 GUI 前端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!