Name

NSPipe — Mac OS X 10.0

Synopsis

This class provides an interface to objects that represent Unix pipes that can be used to transfer data between applications. Pipes are one-way communication channels with a read-end and a write-end. NSFileHandle objects representing these ends of the pipes are obtained by invoking fileHandleForReading and fileHandleForWriting.

image with no caption

@interface NSPipe : NSObject
                                  // Convenience Constructors
   + (id)pipe;
                                  // Initializers
   - (id)init;
                                  // Instance Methods
   - (NSFileHandle *)fileHandleForReading;
   - (NSFileHandle *)fileHandleForWriting;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.