cocoa - Find out the working folder in a Foundation executable? -


I have a console program that is connected to the Foundation framework on the Mac However, How to find strong> Folders in executable?

Although the tool is not in the bundle, you can still do some NSBundle Can be used. For example:

  NSString * binaryPath = [[NSBundle main bundle] executable path]; NSString * Executable Folder = [Binary Path String Bideling Text Text Company];  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -