Re: Problematic NSTask issue
Re: Problematic NSTask issue
- Subject: Re: Problematic NSTask issue
- From: Chris Ryland <email@hidden>
- Date: Tue, 4 Dec 2007 14:48:59 -0500
On Dec 4, 2007, at 9:37 AM, Aaron Vegh wrote:
[...]
And it errors out with a message from unzip saying it can't find the
file:
unzip: cannot find or open '/Users/aaron/TestDir/picture.enc',
'/Users/aaron/TestDir/picture.enc'.zip or
'/Users/aaron/TestDir/picture.enc'.ZIP.
'/Users/aaron/TestDir/picture.enc' is the file it should be unzipping.
It's there, I swear! And it's a zipped file; I can change its
extension in the Finder to .zip and double-click it, no problem.
Just judging from the error message, the argument being passed
includes the single quotes.
E.g., $ unzip foo
produces
unzip: cannot find or open foo, foo.zip or foo.ZIP.
so the fact that the error message includes the single quotes in the
filename is very suggestive.
What does NSLog("file: %@", file); produce at the point of launch?
Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden