Bruce Johnson wrote:

The problem is that the path has white spaces scattered in the string.
 And I need to pass the unix path to a CLI application.  The CLI app
croaks on the white spaces (for obvious reasons)

Post your croaking code. You seem to have some misapprehensions about how command-line arguments work, and without seeing the actual malfunctioning code, it's difficult to diagnose a correct fix.


I also would like it to work in both Leopard and iPhone.

I don't think iPhone allows NSTask, but I could be wrong.

Check your iPhone API. If you don't see an NSTask class, or the C function system() or fork() or execve(), then it's unlikely you can do what you're asking for. Last time I looked, iPhone's child- process capability was intentionally restricted by Apple.

What CLI were you planning to run on iPhone? What did you want this CLI to do? There may be an API that provides the desired feature. Impossible to say, though, unless you describe what you're really trying to do.

  -- GG

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to