• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help. How to use the argument list passed in NSApplicationMain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help. How to use the argument list passed in NSApplicationMain?


  • Subject: Re: Help. How to use the argument list passed in NSApplicationMain?
  • From: Ben Golding <email@hidden>
  • Date: Thu, 24 Feb 2005 00:22:54 +1100


On 23/02/2005, at 23:43, M M wrote:

Im a newbie in Cocoa programming and i'm making an
application that will also run using the command line
but i don't know how to extract and use the arguments
passed in NSApplicationMain.

int main(int argc, char *argv[])
{
    return NSApplicationMain(argc,  (const char **)
argv);
}

I would like to use the arguments in my Controller
class which is my main window.

See NSProcessInfo, and specifically [NSProcessInfo arguments].

	Ben.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Help. How to use the argument list passed in NSApplicationMain?
      • From: M M <email@hidden>
References: 
 >Help. How to use the argument list passed in NSApplicationMain? (From: M M <email@hidden>)

  • Prev by Date: Re: scrollRangeToVisible is slowing me down
  • Next by Date: Re: How to change mouse cursor in NSTextView
  • Previous by thread: Help. How to use the argument list passed in NSApplicationMain?
  • Next by thread: Re: Help. How to use the argument list passed in NSApplicationMain?
  • Index(es):
    • Date
    • Thread