Contents

NSFileHandleDataAvailable

Posted when the file handle determines that data is currently available for reading in a file or at a communications channel.

Declaration

static let NSFileHandleDataAvailable: NSNotification.Name

Discussion

The observers can then issue the appropriate messages to begin reading the data. To cause the posting of this notification, you must send either waitForDataInBackgroundAndNotify() or waitForDataInBackgroundAndNotify(forModes:) to an appropriate NSFileHandle object.

The notification object is the NSFileHandle object that sent the notification. This notification doesn’t contain a userInfo dictionary.

See Also

Notifications