8

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 deprecated in 10.6.

terratactile
  • 85
  • 1
  • 6

1 Answers1

9

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.

Abizern
  • 146,289
  • 39
  • 203
  • 257