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 |
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 |
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 |
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.