D Dogcow Registered Oct 4, 2004 #1 Is there a way with cocoa to programmatically fix spaces in path and filenames? I'm sending the path or filename to an NSTask, so it needs to be formatted right for the command line to be happy... Any suggestions? -Dogcow "moof!"
Is there a way with cocoa to programmatically fix spaces in path and filenames? I'm sending the path or filename to an NSTask, so it needs to be formatted right for the command line to be happy... Any suggestions? -Dogcow "moof!"
A anarchie NSCoder Oct 5, 2004 #2 If you're using NSTask, there's no need to do anything about spaces. You can just pass the entire pathname as a single argument of the NSTask.
If you're using NSTask, there's no need to do anything about spaces. You can just pass the entire pathname as a single argument of the NSTask.