PDA

View Full Version : How to pass commandline argument in cocoa application?




Ram Thakkar
Jul 7, 2012, 02:58 AM
Hello everybody,

I m developing one app in cocoa. What i code in that application is that its open in fullscreen mode with hiding menubar. I used once webview in that application. For testing purpose i opened google in that webview. Now what i want to do it. After building app from that project, if i want to open a www.apple.com website i just write applicationname.app "www.apple.com". So basically i want to pass argument with my that app.

For example in window csharp : System.diagnositc.Process.Start (iexplore,"www.apple.com");

Same thing i want to do on mac.


Please provide me some link or give any advice for that.

Thank in advance.



radiogoober
Jul 7, 2012, 06:57 AM
It's easy.

1. Google.com
2. "command line argument objective c"