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

Re: NSTask launchpath - space


  • Subject: Re: NSTask launchpath - space
  • From: David Remahl <email@hidden>
  • Date: Mon, 6 Oct 2003 01:19:20 +0200

On 5 okt 2003, at 23.23, Alastair J.Houghton wrote:

On Sunday, October 5, 2003, at 08:06 pm, David Dauer wrote:

[theTask setLaunchPath:@"/Volumes/My\ Mac/usr/tool"]

I don't think that's enough "\" characters; C will change "\ " back into " " in the string. Try using two backslash characters or surrounding the entire path with quotes. Regardless of whether that works or not, you should probably report it to Apple as a bug at

http://bugreporter.apple.com

Kind regards,

Alastair.

Try _no_ backslashes. They're not needed in the launch path. In the shell, they are used to escape the spaces, which would otherwise act as an argument delimiter. No such need in the launch path passed to NSTask. The same is true for the elements in the arguments array.

/ Rgds, David
_______________________________________________
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: NSTask launchpath - space
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >Re: NSTask launchpath - space (From: "Alastair J.Houghton" <email@hidden>)

  • Prev by Date: Re: Can NSTableView have different sized rows?
  • Next by Date: Re: Application launch problems
  • Previous by thread: Re: NSTask launchpath - space
  • Next by thread: Re: NSTask launchpath - space
  • Index(es):
    • Date
    • Thread