How to pass commandline argument in cocoa application?

Discussion in 'Mac Programming' started by Ram Thakkar, Jul 7, 2012.

  1. macrumors newbie

    Joined:
    Jul 4, 2012
    #1
    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.
     
  2. macrumors 6502a

    Joined:
    Jun 7, 2011
    #2
    It's easy.

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

Share This Page