filename -> displayName

This commit is contained in:
Kevin Sawicki 2016-10-26 09:47:22 +09:00
parent d26601f695
commit d982376fc4
6 changed files with 23 additions and 18 deletions

View file

@ -664,12 +664,16 @@ the player itself we would call this function with arguments of 16/9 and
are within the content view--only that they exist. Just sum any extra width and
height areas you have within the overall content view.
#### `win.previewFile(pathname[, filename])` _macOS_
#### `win.previewFile(pathname[, displayName])` _macOS_
* `pathname` String - The absolute path to the file to preview with QuickLook. This is important as Quicklook uses the file name and file extension on the path to determine the content_type of the file to open.
* `filename` String (Optional) - The name of the file to display on the QuickLook modal view. This is purely visual and does not affect the content_type of the file. Defaults to filepath.
* `path` String - The absolute path to the file to preview with QuickLook. This
is important as Quick Look uses the file name and file extension on the path to
determine the content type of the file to open.
* `displayName` String (Optional) - The name of the file to display on the
Quick Look modal view. This is purely visual and does not affect the content
type of the file. Defaults to `path`.
Uses QuickLook to preview a file at a given path.
Uses [Quick Look][quick-look] to preview a file at a given path.
#### `win.setBounds(bounds[, animate])`
@ -1189,3 +1193,4 @@ Returns `BrowserWindow` - The parent window.
Returns `BrowserWindow[]` - All child windows.
[window-levels]: https://developer.apple.com/reference/appkit/nswindow/1664726-window_levels
[quick-look]: https://en.wikipedia.org/wiki/Quick_Look