• 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: Problem with arguments of an NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with arguments of an NSTask


  • Subject: Re: Problem with arguments of an NSTask
  • From: Arthur VIGAN <email@hidden>
  • Date: Tue, 29 Oct 2002 13:49:06 +0100

But when I use:

NSArray *arguments = [NSArray arrayWithObjects:@"-nice", @"19"];

I get a EX_BAD_ACCESS error before the task is launched.

Arthur


the following code doesn't work and I don't see where the mistake is:

NSArray *arguments = [NSArray arrayWithObject:@"-nice 19"];

IIRC, arguments are split by whitespace, so "-nice 19" would actually be *two* arguments, not just one.

sherm--

If you listen to a UNIX shell, can you hear the C?
_______________________________________________
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.

  • Follow-Ups:
    • Re: Problem with arguments of an NSTask
      • From: "devdrvr.net Multi-Platform SW" <email@hidden>
    • Re: Problem with arguments of an NSTask
      • From: Finlay Dobbie <email@hidden>
    • Re: Problem with arguments of an NSTask
      • From: Robert Tillyard <email@hidden>
    • Re: Problem with arguments of an NSTask
      • From: Marco Binder <email@hidden>
References: 
 >Re: Problem with arguments of an NSTask (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Problem with arguments of an NSTask
  • Next by Date: Re: Problem with arguments of an NSTask
  • Previous by thread: Re: Problem with arguments of an NSTask
  • Next by thread: Re: Problem with arguments of an NSTask
  • Index(es):
    • Date
    • Thread