我试过了
[[NSDocumentController sharedDocumentController] duplicateDocumentWithContentsOfURL:nil
copying:NO
displayName:nil
error:NULL] ;
但它不工作。我有错误
typeForContentsOfURL:error: must be overridden for your application to support non-'file:' URLs.