6

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 /

1 Answer 1

14

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.