开发者

get current path of the .app file being executed

开发者 https://www.devze.com 2023-03-21 10:54 出处:网络
How can I get the current path of my .app which is being executed开发者_运维问答 in cocoa mac application?

How can I get the current path of my .app which is being executed开发者_运维问答 in cocoa mac application?

I tried using NSTask to do pwd but returns me /


I found it by using [[NSBundle mainBundle] bundlePath]

0

精彩评论

暂无评论...
验证码 换一张
取 消