Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPipeMBS class.

NSPipeMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacCocoa Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor to create a new pipe.

Handle is not zero on success.

NSPipeMBS.fileHandleForReading as NSFileHandleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacCocoa Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the receiver's read file handle.

You use the returned file handle to read from the pipe using NSFileHandle's read methods—availableData, readDataToEndOfFile, and readDataOfLength.
You don't need to send closeFile to this object or explicitly release the object after you have finished using it.

Some examples using this method:

NSPipeMBS.fileHandleForWriting as NSFileHandleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacCocoa Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the receiver's write file handle.

You use the returned file handle to write to the pipe using NSFileHandle's writeData: 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 memoryblock).

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...