• 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: NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask


  • Subject: Re: NSTask
  • From: Alex Lock <email@hidden>
  • Date: Tue, 7 Oct 2003 11:26:42 -0400

On Tuesday, October 7, 2003, at 10:51 AM, April Gendill wrote:

yes I understand that, which is why i have an array, the problem is when I pass an argument like

-arg param

this is what doesn't work.

just an array of arguments works fine

April.

That was Phil's point...

You don't pass NSTask an array with one element for both argument and parameter like such:

index 0: -arg param

You have to separate the argument from the parameter. So, in this example, your NSArray passed to NSTask would contain:

index 0: -arg
index 1: param

leave off the whitespace and give it a try:)

Alex <email@hidden>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSTask (From: April Gendill <email@hidden>)

  • Prev by Date: Re: launching 2 same applications
  • Next by Date: Re: NSTask
  • Previous by thread: Re: NSTask
  • Next by thread: Re: NSTask
  • Index(es):
    • Date
    • Thread