我想请用户使用 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; // ??
}
谢谢