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

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -