开发者

Setting file extension for File Dialog in Objective-C

I was wondering how to set the file extension for a file dialog so that only those files with that extension show up in the folder. I know there is a way to set if files/directories can be seen, and the folder that the file dialog looks in, but haven't come across a way to 开发者_StackOverflow社区set the file extension. Any suggestions?


Use the NSOpenPanel/NSSavePanel method setAllowedFileTypes:. OS X thinks in terms of file types, not extensions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜