Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp / Part 2 - Working With MacApp


Chapter 27 -
Working With Streams

This chapter provides a brief description of the basic mechanism for reading and writing document data to a stream. It also includes a recipe and sample code that demonstrate how to

MacApp's stream mechanism and classes are described in "Streams," beginning on page 50 in Chapter 3, "Core Technologies."

For a more complete example of how to read and write a document, see "Recipe--Using a Document Class With a Text-Editing View," beginning on page 434.


Chapter Contents
Overview
Writing a Document to a File Stream
Reading a Document From a Stream
Recipes--Streams
Recipe--Using a Handle Stream to Write Text to a Handle
Create a Handle
Create and Initialize a Handle Stream
Write Text Data to the Handle Stream
Free the Handle Stream
Using the Handle Data

Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice