From ec610cd97b639e890543211fd02562a0f266d801 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 10 Oct 2017 03:16:24 +1100 Subject: [PATCH] Document new nativeImage.createFromNamedImage method --- docs/api/native-image.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 8163c2339625..96510eecf7d4 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -157,6 +157,16 @@ Returns `NativeImage` Creates a new `NativeImage` instance from `dataURL`. +### `nativeImage.createFromNamedImage(imageName)` _macOS_ + +* `imageName` String + +Returns `NativeImage` + +Creates a new `NativeImage` instance from the NSImage that maps to the +given image name. See [`NSImageName`](https://developer.apple.com/documentation/appkit/nsimagename?language=objc) +for a list of possible values. + ## Class: NativeImage > Natively wrap images such as tray, dock, and application icons.