Instance Property


The receiver's write file handle.


var fileHandleForWriting: FileHandle { get }


This object is automatically deallocated when the receiver is deallocated.

You use the returned file handle to write to the pipe using NSFileHandle's write(_:) method. When you are finished writing data to this object, send it a closeFile() message to delete the descriptor. Deleting the descriptor causes the reading process to receive an end-of-data signal (an empty NSData object).

See Also

Getting the File Handles for a Pipe

var fileHandleForReading: FileHandle

The receiver's read file handle.