Re: Re: Trying to capture standard error from an NSTask
Re: Re: Trying to capture standard error from an NSTask
- Subject: Re: Re: Trying to capture standard error from an NSTask
- From: <email@hidden>
- Date: Wed, 2 Mar 2005 8:54:57 +0000
>
> From: j o a r <email@hidden>
> Date: 2005/03/02 Wed AM 08:34:52 GMT
> To: <email@hidden>
> Subject: Re: Trying to capture standard error from an NSTask
>
>
You know, I'm not sure. I copied that from my code, I used to have NSASCIIStringEncoding. Must have removed it for one reason or another and forgot to put it back.
To answer your earlier questions, yes that was a typo (sorry!, been at this for a while now).
I didn't check for nil because the string was being assigned the data from the NSFileHandle, so I assumed that checking for nil meant checking if the string had been allocated and initialized, which it has been. I'll try that and see if that works. Thanks for the tip. I'd thought of doing that then dismissed it.
James
On 2005-03-02, at 09.03, <email@hidden> wrote:
NSString* errorString = [[NSString alloc] initWithData:[errorReader
readDataToEndOfFile] encoding:nil];
Also, why do you pass *nil*, and not an encoding here?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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