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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -