Mac系统中选择保存路径的控件当我们新建了一个文档,保存的时候,Mac系统会弹出一个保存对话框,对话框里面有一个控件,可以选择保存路径我通过继承NSPopupButton的类SYXPathPopupButton实现相同的效果,并加上了tooltips。如图所示:使用方法1、实例化一个SYXPathPopupButton对象pathPopupButton2、设置“个人收藏目录”与“最近打开的目录”self.pathPopupButton.defaultDirs =[[NSMutableArray alloc] initWithObjects:[@"~/Desktop" stringByStandardizingPath],
[@"~" stringByStandardizingPath],
[@"~/Downloads" stringByStandardizingPath],
[@"~/Movies" stringByStandardizingPath],
[@"~/Music" stringByStanda
...
继续阅读
(21)