Article View: comp.sys.next.programmer
Article #1460Re: help with streams please (APOLOGY/CORRECTION)
From: Andrew Loewenstern
Date: Mon, 12 Oct 1992 21:21
Date: Mon, 12 Oct 1992 21:21
33 lines
1828 bytes
1828 bytes
In article <1992Oct9.230027.1638@cubetech.com> andrew@cubetech.com writes:
In article <4ep3D7i00iUxE1J0Yj@andrew.cmu.edu> js3b+@andrew.cmu.edu (James Vincent Schultz) writes:
>
>>I'm just starting out as a NeXT programmer, so please forgive me if I'm
>>missing something obvious.
>>
>>I'd like to use the NXReadTypes & NXWriteTypes functions to temporarily store
>>some instance variables in memory. I looked in NeXT Concepts and the
>>NeXTStep Reference to come up with the idea of opening a memory stream,
>>converting that to a typed stream, and passing that to my object.
>>
>>This is great except that you have to open a stream NX_READONLY or
>>NX_WRITEONLY. I can't figure out how to do both. I want to write to a
>>stream, then come back a while later and read the values back.
>>
>>How can I read & write a stream?
> NX_READWRITE
>
> andrew
Correction: The docs explicitly state that you should NOT open *NXTypedStreams* as NX_READWRITE. NXStreams are O.K. Sorry for getting confused there.
Thanks to Greg Anderson for slapping me upside the head on that one... :-)
andrew
--
andrew@cubetech.com | "We shall not cease from exploration
Andrew Loewenstern | And the end of our exploring
Cube Technologies, Inc. | Will be to arrive where we started
| And know the place for the first time." -T.S. Eliot
Technical Details
Message-ID:
<1992Oct12.212134.4617@cubetech.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!psinntp!psinntp!cubetech.com!imladris!andrewReferences:
<1992Oct9.230027.1638@cubetech.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!psinntp!psinntp!cubetech.com!imladris!andrew From: andrew@cubetech.com (Andrew Loewenstern) Subject: Re: help with streams please (APOLOGY/CORRECTION) Message-ID: <1992Oct12.212134.4617@cubetech.com> Sender: andrew@cubetech.com Reply-To: andrew@cubetech.com References: <1992Oct9.230027.1638@cubetech.com> Date: Mon, 12 Oct 1992 21:21:34 GMT Lines: 33