Type Property 型プロパティ

readCompletionNotification

Posted when the file handle reads the data currently available in a file or at a communications channel.

Declaration 宣言

class let readCompletionNotification: NSNotification.Name

Discussion 議論

It makes the data available to observers by putting it in the userInfo dictionary. To cause the posting of this notification, you must send either readInBackgroundAndNotify() or readInBackgroundAndNotify(forModes:) to an appropriate NSFileHandle object. それはデータを、それをuserInfo辞書の中に置くことによってオブザーバに利用可能にします。この通知を投函することを引き起こすには、あなたはreadInBackgroundAndNotify()またはreadInBackgroundAndNotify(forModes:)のどちらかを適切なNSFileHandleオブジェクトに送らなければなりません。

The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: 通知オブジェクトは、通知を送ったNSFileHandleオブジェクトです。userInfo辞書は、以下の情報を含みます:

Key

Value

NSFileHandleNotificationDataItem

An NSData object containing the available data read from a socket connection.

@"NSFileHandleError"

An NSNumber object containing an integer representing the UNIX-type error which occurred.

See Also 参照

Notifications 通知