Class

NSPipe

A one-way communications channel between related processes.

Declaration

@interface NSPipe : NSObject

Overview

NSPipe objects provide an object-oriented interface for accessing pipes. An NSPipe object represents both ends of a pipe and enables communication through the pipe. A pipe is a one-way communications channel between related processes; one process writes data, while the other process reads that data. The data that passes through the pipe is buffered; the size of the buffer is determined by the underlying operating system. NSPipe is an abstract class, the public interface of a class cluster.

Topics

Creating an NSPipe Object

- init

Returns an initialized NSPipe object.

+ pipe

Returns an NSPipe object.

Getting the File Handles for a Pipe

fileHandleForReading

The receiver's read file handle.

fileHandleForWriting

The receiver's write file handle.

Relationships

Inherits From

See Also

Tasks and Pipes

NSTask

An object representing a subprocess of the current process.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software