Global Variable

NSFileHandleDataAvailableNotification

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

Declaration

const NSNotificationName NSFileHandleDataAvailableNotification;

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 waitForDataInBackgroundAndNotifyForModes: to an appropriate NSFileHandle object.

The notification object is the NSFileHandle object that sent the notification. This notification does not contain a userInfo dictionary.

See Also

Notifications

NSFileHandleConnectionAcceptedNotification

This notification is posted when an NSFileHandle object establishes a socket connection between two processes, creates an NSFileHandle object for one end of the connection, and makes this object available to observers by putting it in the userInfo dictionary.

NSFileHandleReadCompletionNotification

This notification is posted when the file handle reads the data currently available in a file or at a communications channel.

NSFileHandleReadToEndOfFileCompletionNotification

This notification is posted when the file handle reads all data in the file or, if a communications channel, until the other process signals the end of data.