NSFileManager の delegatefileManager:shouldMoveItemAtPath:toPath: を使用して、モーダル シート内のファイルを上書きするようユーザーに依頼したいと思います。
デリゲート内で実行をブロックし、モーダル シートを表示し、デリゲートに戻り値を取得する方法はありますか?
- (BOOL)fileManager:(NSFileManager *)fileManager shouldMoveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath {
// Ask the user - get a return value from modal sheet here - returnCode ?
return returnCode ? YES : NO; // ??
}
ありがとう