[Mono-osx] NSImage.ImageNamed - in folder?

Troy Dawson klocwise at comcast.net
Thu Dec 6 20:45:44 UTC 2012

never mind, my response didn't answer your question since I've also run into this same issue of trying to maintain subdirectories in my resource folder.

I've found this code loads image files from subdirectories:

				var path = Path.Combine(NSBundle.MainBundle.BundlePath, "Contents", "Resources", "Test Files");
				path = Path.Combine(path, "Clear2.png");

				Sys.Log("path = {0}", path);

				test_image = new NSImage(path);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121206/a66ead8b/attachment.html>

More information about the Mono-osx mailing list