开发者

get current path of the .app file being executed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜