Reads to the end of file from the file or communications channel in the background and posts a notification when finished.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This method performs an asynchronous
read operation on a file or communications channel and posts an
NSFile. You must call this method from a thread that has an active run loop.
The notification includes a
user dictionary that contains the data read; access this object using the
Any object interested in receiving this data asynchronously must add itself as an observer of
NSFile. In communication via stream-type sockets, the receiver is often the object returned in the
user dictionary of