Specifying initial directory for NSOpenPanel RunModal?
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.
精彩评论