Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSInputStreamMBS class.

NSInputStreamMBS.inputStreamWithData(data as Memoryblock) as NSInputStreamMBS

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 NSInputStream object for reading from a given NSData object.

data: The data object from which to read. The contents of data are copied.

Returns an initialized NSInputStream object for reading from data. If data is not an NSData object, this method returns nil.

The stream must be opened before it can be used.

NSInputStreamMBS.inputStreamWithFileAtPath(path as string) as NSInputStreamMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns an NSInputStream object that reads data from the file at a given path.

path: The path to the file.

Returns an initialized NSInputStream object that reads data from the file at path.

The stream must be opened before it can be used.

NSInputStreamMBS.inputStreamWithURL(URL as string) as NSInputStreamMBS

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 NSInputStream object that reads data from the file at a given URL.

url: The URL to the file.

Returns an initialized NSInputStream object that reads data from the URL at 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...