Merge pull request #480 from lusbuab/patch-1

Note for OS X, regarding sheets.
This commit is contained in:
Cheng Zhao 2014-07-21 13:30:43 +08:00
commit b29ab48032

View file

@ -11,6 +11,8 @@ var dialog = require('dialog');
console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ]}));
```
**Note for OS X**: If you want to present dialogs as sheets, the only thing you have to do is to provide a `BrowserWindow` reference in the `browserWindow` parameter.
## dialog.showOpenDialog([browserWindow], options, [callback])
* `browserWindow` BrowserWindow