摘要:
代码如下: NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel setPrompt: @"打开"]; openPanel.allowedFileTypes = [NSArray arrayWithObjec... 阅读全文
摘要:
1、打开 APPDelegate.h 文件 添加NSWindowDelegate 协议2、在 .m 文件里添加下面代码- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BO... 阅读全文