在MachOView中使用打开文件的操作:
MVDocument * document = [documentController openDocumentWithContentsOfURL:[NSURL fileURLWithPath:filename] display:YES error:&error];
需要在info.plist
做如下的配置:

这样就能知道的NSDocument类型了(其中MVDocument继承NSDocument)
在MachOView中使用打开文件的操作:
MVDocument * document = [documentController openDocumentWithContentsOfURL:[NSURL fileURLWithPath:filename] display:YES error:&error];
需要在info.plist
做如下的配置:
本文标题:openDocumentWithContentsOfURL:di
本文链接:https://www.haomeiwen.com/subject/ehzjsctx.html
网友评论