<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Resources]]></title><description><![CDATA[<p dir="auto">Not really a bug, but how come the "Resources" folder when you generate an extension is capitalized?</p>
<p dir="auto">On another note, what is the intended purpose of this folder?</p>
]]></description><link>https://forum.robofont.com/topic/242/resources</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 03:32:08 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/242.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Mar 2013 03:17:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Resources on Mon, 01 Jan 2018 10:41:24 GMT]]></title><description><![CDATA[<p dir="auto">Not really a bug, but how come the "Resources" folder when you generate an extension is capitalized?</p>
<p dir="auto">On another note, what is the intended purpose of this folder?</p>
]]></description><link>https://forum.robofont.com/post/242</link><guid isPermaLink="true">https://forum.robofont.com/post/242</guid><dc:creator><![CDATA[jack_jennings]]></dc:creator><pubDate>Mon, 01 Jan 2018 10:41:24 GMT</pubDate></item><item><title><![CDATA[Reply to Resources on Mon, 01 Jan 2018 10:40:26 GMT]]></title><description><![CDATA[<p dir="auto">If you look into any app bundle folder names are capitalized</p>
<p dir="auto">The Resources folder is used for assets like image, everything except .py files.</p>
<p dir="auto">This is handy in combination with an <code>ExtensionBundle</code> object</p>
<pre><code class="language-python">from mojo.extensions import ExtensionBundle

myBundle = ExtensionBundle("MyBundleName")

# assuming in the Resource folder there is a file called "myToolbarIcon.png"
# when retrieving files from a bundle an extension is not required
# this will return a NSImage object
toolbarIcon = myBundle.get("myToolbarIcon")
</code></pre>
<p dir="auto">see:</p>
<ul>
<li><a href="http://doc.robofont.com/extensions/building-extensions/" rel="nofollow">http://doc.robofont.com/extensions/building-extensions/</a></li>
<li><a href="http://doc.robofont.com/api/mojo/mojo-extensions/" rel="nofollow">http://doc.robofont.com/api/mojo/mojo-extensions/</a></li>
</ul>
]]></description><link>https://forum.robofont.com/post/1005</link><guid isPermaLink="true">https://forum.robofont.com/post/1005</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 01 Jan 2018 10:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to Resources on Mon, 01 Jan 2018 10:40:53 GMT]]></title><description><![CDATA[<p dir="auto">That's good to know about referencing images in a bundle. Is it also possible to reference the resources that are built in to RoboFont (like <code>extensionIcon.png</code>)?</p>
]]></description><link>https://forum.robofont.com/post/1016</link><guid isPermaLink="true">https://forum.robofont.com/post/1016</guid><dc:creator><![CDATA[jack_jennings]]></dc:creator><pubDate>Mon, 01 Jan 2018 10:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Resources on Mon, 01 Jan 2018 10:41:57 GMT]]></title><description><![CDATA[<p dir="auto">the <code>ExtensionBundle</code> us written similarly as <code>NSImage.imageNamed_</code></p>
<pre><code class="language-python">from AppKit import *

print NSImage.imageNamed_("ExtensionIcon")
</code></pre>
]]></description><link>https://forum.robofont.com/post/1017</link><guid isPermaLink="true">https://forum.robofont.com/post/1017</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 01 Jan 2018 10:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Resources on Sat, 23 Mar 2013 16:47:09 GMT]]></title><description><![CDATA[<p dir="auto">Perfect!</p>
]]></description><link>https://forum.robofont.com/post/1020</link><guid isPermaLink="true">https://forum.robofont.com/post/1020</guid><dc:creator><![CDATA[jack_jennings]]></dc:creator><pubDate>Sat, 23 Mar 2013 16:47:09 GMT</pubDate></item></channel></rss>