Re: NSTask with non-ASCII paths
Re: NSTask with non-ASCII paths
- Subject: Re: NSTask with non-ASCII paths
- From: Severin Kurpiers <email@hidden>
- Date: Sat, 8 Jan 2005 13:26:59 +0100
Hi,
my advice cannot work. Sorry that I've posted untested code :(
Severin Kurpiers
Verek Ltd.
On 8. Jan 2005, at 08:22, Severin Kurpiers wrote:
Hi Andrew,
try to do it this way:
- (int) performSipsTransformation: (NSMutableArray *) arguments {
NSString *parentPath = [absolutePath
stringByDeletingLastPathComponent];
NSString *name = [absolutePath lastPathComponent];
[arguments addObject: [name fileSystemRepresentation]];
NSTask *sipsTask = [[[NSTask alloc] init] autorelease];
[sipsTask setLaunchPath: @"/usr/bin/sips"];
[sipsTask setCurrentDirectoryPath: [parentPath
fileSystemRepresentation]];
[sipsTask setArguments: arguments];
[sipsTask launch];
[sipsTask waitUntilExit];
return [sipsTask terminationStatus];
}
Does it work as expected?
Bye,
Severin Kurpiers
Verek Ltd.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden