Platforms to show: All Mac Windows Linux Cross-Platform
NSOutputStreamMBS class
Super class: NSStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Subclass of the NSStreamMBS class.
- property hasSpaceAvailable as Boolean
- 4 methods
- method Constructor
- method Constructor(filePath as string, append as boolean)
- method OutputData as MemoryBlock
- method write(data as MemoryBlock) as Integer
- 3 shared methods
- shared method outputStreamToFileAtPath(filePath as string, append as boolean) as NSOutputStreamMBS
- shared method outputStreamToMemory as NSOutputStreamMBS
- shared method outputStreamWithURL(fileURL as string, append as boolean) as NSOutputStreamMBS
Super class NSStreamMBS
- 4 properties
- property Error as NSErrorMBS
- property Handle as Integer
- property position as Int64
- property Status as Integer
- 4 methods
- method Close
- method Constructor Private
- method Open
- method SetPosition(pos as Int64) as boolean
- 8 constants
Status Constants
Constant | Value | Description |
---|---|---|
kStatusAtEnd | 5 |
There is no more data to read, or no more data can be written to the stream. When this status is returned, the stream is in a “non-blocking” mode and no data are available. |
kStatusClosed | 6 |
The stream is closed (close has been called on it). |
kStatusError | 7 |
The remote end of the connection can’t be contacted, or the connection has been severed for some other reason. |
kStatusNotOpen | 0 |
The stream is not open for reading or writing. This status is returned before the underlying call to open a stream but after it’s been created. |
kStatusOpen | 2 |
The stream is open, but no reading or writing is occurring. |
kStatusOpening | 1 |
The stream is in the process of being opened for reading or for writing. For network streams, this status might include the time after the stream was opened, but while network DNS resolution is happening. |
kStatusReading | 3 |
Data is being read from the stream. This status would be returned if code on another thread were to call Status on the stream while a read() was in progress. |
kStatusWriting | 4 |
Data is being written to the stream. This status would be returned if code on another thread were to call Status on the stream while a write() was in progress. |
This class has no sub classes.
Some methods using this class:
- NSNetServiceMBS.getStreams(byref inputStream as NSInputStreamMBS, byref outputStream as NSOutputStreamMBS) as Boolean
Some properties using for this class:
- CBL2CAPChannelMBS.outputStream as NSOutputStreamMBS
Some events using this class:
- NSNetServiceMBS.DidAcceptConnection(InputStream as NSInputStreamMBS, outputStream as NSOutputStreamMBS)
- NSURLSessionMBS.streamTaskDidBecomeInputStream(streamTask as NSURLSessionStreamTaskMBS, inputStream as NSInputStreamMBS, outputStream as NSOutputStreamMBS)
Some examples using this class:
Blog Entries
Release notes
- Version 18.2
- Added NSUUIDMBS, NSStreamMBS, NSOutputStreamMBS and NSInputStreamMBS classes.
The items on this page are in the following plugins: MBS MacBase Plugin.
NSOutlineViewMBS - NSPageLayoutMBS