O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required