Re: in-memory files?
Re: in-memory files?
- Subject: Re: in-memory files?
- From: Ondra Cada <email@hidden>
- Date: Sun, 19 Aug 2001 22:45:52 +0200
John,
>
>>>>> John C. Randolph (JCR) wrote at Sun, 19 Aug 2001 11:49:30 -0700:
JCR> In NeXTSTEP, there was a function that would open a file descriptor
JCR> which allowed you to write into a memory buffer using fwrite(),
JCR> fprintf(), etc. I've been looking for an equivalent on Mac OS X, and
JCR> it's not jumping out at me. Isn't there something in POSIX that does
JCR> this? On NeXTSTEP, IIRC, it was called something like "NXOpenMemory()".
NSMutableData is meant for this in OpenStep. In case you *do* need the posix
API, well, I would probably use a pipe with NSMutableData on the receiving
end ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc