Re: NSPipe / NSTask ls -> Array
Re: NSPipe / NSTask ls -> Array
- Subject: Re: NSPipe / NSTask ls -> Array
- From: Jerry Krinock <email@hidden>
- Date: Sat, 15 Jul 2006 22:05:42 -0700
- Thread-topic: NSPipe / NSTask ls -> Array
on 06/07/15 19:58, Prachi Gauriar at email@hidden wrote:
> Is there a reason you can't just do something like this:
>
[...doing it the "Cocoa" way...]
This is something I learned the hard way, so let me state it more clearly:
Dominick, throw your code in the trash and use Prachi's instead.
Never use an NSTask unless absolutely necessary! Not only does it usually
take longer to write and debug, also it requires additional system resources
(like processes) which are limited and may not be available on a
heavily-loaded machine. It will work 99% of the time for 99% of users, but
you'll eventually have to write even more code to recover from "can't fork",
etc. errors.
_______________________________________________
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