Re: Cocoa-dev Digest, Vol 9, Issue 28
Re: Cocoa-dev Digest, Vol 9, Issue 28
- Subject: Re: Cocoa-dev Digest, Vol 9, Issue 28
- From: "email@hidden" <email@hidden>
- Date: Thu, 19 Jan 2012 21:27:34 +0800
My Java
processes do not quit if I pipe their output to null:
�NSTask *task = [NSTask new];
�[task setLaunchPath:execPath];
�[task setCurrentDirectoryPath:_directory];
�[task setArguments:arguments];
�[task setStandardError:[NSFileHandle fileHandleWithNullDevice]];
�[task setStandardOutput:[NSFileHandle fileHandleWithNullDevice]];
�[task launch];
Ling Peng
在 2012年1月19日,18:40,email@hidden 写道:
> My Java
> processes do not quit if I pipe their output to null:
> �NSTask *task = [NSTask new];
> �[task setLaunchPath:execPath];
> �[task setCurrentDirectoryPath:_directory];
> �[task setArguments:arguments];
> �[task setStandardError:[NSFileHandle fileHandleWithNullDevice]];
> �[task setStandardOutput:[NSFileHandle fileHandleWithNullDevice]];
> �[task launch];
_______________________________________________
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