<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">I'm pretty sure that 
method uses either a named image that was previously set or looks only 
in the bundle root. For subfolders, you probably need to use the NSImage
 constructor that takes a filename. If the constructor doesn't assume 
the bundle root, you can probably construct the absolute path using<span></span>
 NSBundle.MainBundle.PathForResource.<br>
<blockquote style="border: 0px none;" 
cite="mid:1354823581957-4657676.post@n4.nabble.com" type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="rmarkiewicz@devolutions.net" photoname="thenextman" 
src="cid:part1.06020608.02040505@spicypixel.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:rmarkiewicz@devolutions.net" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">thenextman</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">December 6, 2012 
11:53 AM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div>Possible stupid question -
 how can I load an image from a folder?<br><br>Project structure:<br><br>Clarus.gif<br>Images
 (dir)<br>    ClarusInFolder.gif<br><br>Code:<br><br>NSImage image1 = 
NSImage.ImageNamed("Clarus.gif");<br>Console.WriteLine(image1 == null); 
// Prints false<br><br>NSImage image2 = 
NSImage.ImageNamed("ClarusInFolder.gif");<br>Console.WriteLine(image2 ==
 null); // Prints true<br><br>How can I make the second image work? I've
 tried to specify the folder in<br>the path, everything... Both images 
have build action set to 'Content', and<br>if I peek inside the bundle I
 can see the folder structure recreated in<br>there.<br><br>Thanks in 
advance!<br><br><br><br>--<br>View this message in context: 
<a class="moz-txt-link-freetext" href="http://mono.1490590.n4.nabble.com/NSImage-ImageNamed-in-folder-tp4657676.html">http://mono.1490590.n4.nabble.com/NSImage-ImageNamed-in-folder-tp4657676.html</a><br>Sent
 from the Mono - OSX mailing list archive at Nabble.com.<br>_______________________________________________<br>Mono-osx
 mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Mono-osx@lists.ximian.com">Mono-osx@lists.ximian.com</a><br><a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</a><br></div></div>
</blockquote>
</body></html>