Global Variable グローバル変数

NSFileHandleReadCompletionNotification

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

Declaration 宣言

const NSNotificationName NSFileHandleReadCompletionNotification;

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 readInBackgroundAndNotifyForModes: to an appropriate NSFileHandle object. それはデータを、それをuserInfo辞書の中に置くことによってオブザーバに利用可能にします。この通知を投函することを引き起こすには、あなたはreadInBackgroundAndNotifyまたはreadInBackgroundAndNotifyForModes:のどちらかを適切な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 通知