Fixing spaces in pathnames

Dogcow

Registered
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!"
 
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.
 
Back
Top