-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[appkit] Add NSImage lazy initialization
We were missing initByReferencingFile: which initializes the image object lazily. The non working use case was: var iconFile = NSBundle.MainBundle.PathForResource ("AppIcons", "icns"); NSApplication.SharedApplication.ApplicationIconImage = new NSImage (iconFile); In this example, the constructor is calling initWithContentsOfFile: which will not load the right icon from the .icns file. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=40349.
- Loading branch information
Vincent Dondain
committed
Apr 27, 2016
1 parent
2edb2ae
commit 8b40072
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters