waitForDataInBackgroundAndNotify
データがバックグラウンドスレッドで利用できるかどうかを調べます
解説
データがバックグラウンドスレッドで利用できるかどうかを調べます。利用できるようになればNSFileHandleDataAvailableNotificationをポストします。
通知をポストした後、スレッドは終了します。
返り値
( void )
なし
引数
フレームワーク
Foundation
クラス
NSFileHandle
Instance Methods
使用可能
10.0
参照
- availableData
- initWithFileDescriptor:
- readDataOfLength:
- readDataToEndOfFile
例文
[handle waitForDataInBackgroundAndNotify];//バックグラウンドで利用できるか通知