FROM : Bill Bumgarner
DATE : Thu Aug 03 20:55:33 2006
On Aug 3, 2006, at 11:22 AM, Andrei Tchijov wrote:
> Very true. It just that I got bitten by it (I did not assigned
> initial values to in/out stream). Nowhere in the documentation it
> mentions that you have to nil initial values in order to be able to
> check success/failure. It looks little bit odd to me. Why this
> method does not return some sort of status is quite beyond me.
>
> To be fair, documentation does not promise that in/out stream
> variables will be nil-ed on failure.
You are correct. I filed a bug asking for either that method to
return BOOL or to explicitly call out the behavior in the documentation.
<rdar://problem/4666555> getStreamsToHost is confusing
b.bum
DATE : Thu Aug 03 20:55:33 2006
On Aug 3, 2006, at 11:22 AM, Andrei Tchijov wrote:
> Very true. It just that I got bitten by it (I did not assigned
> initial values to in/out stream). Nowhere in the documentation it
> mentions that you have to nil initial values in order to be able to
> check success/failure. It looks little bit odd to me. Why this
> method does not return some sort of status is quite beyond me.
>
> To be fair, documentation does not promise that in/out stream
> variables will be nil-ed on failure.
You are correct. I filed a bug asking for either that method to
return BOOL or to explicitly call out the behavior in the documentation.
<rdar://problem/4666555> getStreamsToHost is confusing
b.bum






Cocoa mail archive

