2015年4月8日
摘要: 代码如下: NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel setPrompt: @"打开"]; openPanel.allowedFileTypes = [NSArray arrayWithObjec... 阅读全文
posted @ 2015-04-08 12:52 子叶_Sky 阅读(3821) 评论(0) 推荐(0) 编辑
摘要: 1、打开 APPDelegate.h 文件 添加NSWindowDelegate 协议2、在 .m 文件里添加下面代码- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BO... 阅读全文
posted @ 2015-04-08 12:49 子叶_Sky 阅读(966) 评论(0) 推荐(0) 编辑