Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document occasional mismatch between NSImageName and string #17826

Merged
merged 1 commit into from Apr 17, 2019

Conversation

codebytere
Copy link
Member

Description of Change

Fixes #17785.

In some cases, the NSImageName doesn't match its string representation; one example of this is NSFolderImageName, whose string representation would actually be NSFolder. Therefore, you'll need to determine the correct string representation for your image before passing it in. This documents that need.

cc @nornagon

Checklist

Release Notes

Notes: Documented an issue with nativeImage.createFromNamedImage where the string representations of NSImageName might not match the NSImageName.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 16, 2019
@codebytere codebytere changed the title doc: document occasional mismatch between NSImageName and string docs: document occasional mismatch between NSImageName and string Apr 16, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 17, 2019
@codebytere codebytere merged commit f1ee35e into master Apr 17, 2019
@release-clerk
Copy link

release-clerk bot commented Apr 17, 2019

Release Notes Persisted

Documented an issue with nativeImage.createFromNamedImage where the string representations of NSImageName might not match the NSImageName.

@trop
Copy link
Contributor

trop bot commented Apr 17, 2019

I have automatically backported this PR to "4-1-x", please check out #17848

@trop
Copy link
Contributor

trop bot commented Apr 17, 2019

I have automatically backported this PR to "5-0-x", please check out #17849

@sofianguy sofianguy added this to Fixed in 5.0.0-beta.9 in 5.0.x Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
5.0.x
Fixed in 5.0.0-beta.9
Development

Successfully merging this pull request may close these issues.

nativeImage.createFromNamedImage returns nothing
3 participants