Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSOutputStreamMBS class.

NSOutputStreamMBS.outputStreamToFileAtPath(filePath as string, append as boolean) as NSOutputStreamMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns an initialized output stream for writing to a specified file.

path: The path to the file the output stream will write to.
append: True if newly written data should be appended to any existing file contents, otherwise false.

Returns an initialized output stream that can write to path.

The stream must be opened before it can be used.

NSOutputStreamMBS.outputStreamToMemory as NSOutputStreamMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns an initialized output stream that will write stream data to memory.

Returns an initialized output stream that will write stream data to memory.

The stream must be opened before it can be used.

You retrieve the contents of the memory stream by OutputData property.

NSOutputStreamMBS.outputStreamWithURL(fileURL as string, append as boolean) as NSOutputStreamMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns an initialized output stream for writing to a specified URL.

fileURL: The URL to the file the output stream will write to.
append: True if newly written data should be appended to any existing file contents, otherwise false.

Returns an initialized output stream that can write to url.

The stream must be opened before it can be used.

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


The biggest plugin in space...