macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

readToEndOfFileInBackgroundAndNotifyForModes:

Index>Foundation>NSFileHandle

バックグラウンドでファイルの最後まで読んで、通知します
-(void)readToEndOfFileInBackgroundAndNotifyForModes:(NSArray *)modes:

解説

バックグラウンドでファイルの最後まで読んで、通知します。

返り値

( void )

なし

引数

( NSArray * )modes

モード

クラス

NSFileHandle

Instance Methods

使用可能

10.0

参照

- acceptConnectionInBackgroundAndNotifyForModes:
- enqueueNotification:postingStyle:coalesceMask:forModes:(NSNotificationQueue)

例文

//バックグラウンドで読んで通知3
[handle3 seekToFileOffset:0];
[handle3 readToEndOfFileInBackgroundAndNotifyForModes:[NSArray arrayWithObject:NSDefaultRunLoopMode]];