![]() |
1
zhufenggood 2013-07-20 23:05:03 +08:00 via iPhone ![]() 打开terminal,把文件拖到terminal窗口上就变成路径了。
|
![]() |
2
dorentus 2013-07-20 23:31:26 +08:00 ![]() 你是想要去参数?
Cocoa GUI 程序的话,这样应该可以(http://stackoverflow.com/a/5147128/90172): NSArray *arguments = [[NSProcessInfo processInfo] arguments]; 其它的话,搜关键字『ARGV』吧,例如 https://www.google.com/search?q=ARGV+bash |
![]() |
3
dorentus 2013-07-20 23:32:02 +08:00
打错字了。。第一行里的应该是『取参数』。。
|