开发者

Specifying initial directory for NSOpenPanel RunModal?

开发者 https://www.devze.com 2023-03-09 12:44 出处:网络
Seems like I must be overlooking something in documentation. How do I specify a directory I want to start in when I use runModal with NSOpenPanel.

Seems like I must be overlooking something in documentation.

How do I specify a directory I want to start in when I use runModal with NSOpenPanel.

Some methods are depr开发者_如何学Cecated in 10.6.


You set this using setDirectoryURL before displaying the panel with beginSheetModalForWindow:completionHandler:

It's specified in the documentation. NSOpenPanel subclasses NSSavePanel so you can use those methods as well.

0

精彩评论

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

关注公众号