<?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[Preferences]]></title><description><![CDATA[<p dir="auto">Been figuring out how to save and load preferences for some tools and thought I'd share my testing script.</p>
<p dir="auto"><a href="https://gist.github.com/okay-type/ce122159565cbeab320b069010fb011b" rel="nofollow">https://gist.github.com/okay-type/ce122159565cbeab320b069010fb011b</a></p>
<p dir="auto">It's working, but it might not be the best way to manage a larger number of values. And I couldn't figure out what exactly 'registerExtensionDefaults' did. (edit: I think I figured out 'registerExtensionDefaults')</p>
]]></description><link>https://forum.robofont.com/topic/698/preferences</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 10:22:03 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/698.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Sep 2019 17:34:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Preferences on Wed, 18 Sep 2019 21:13:33 GMT]]></title><description><![CDATA[<p dir="auto">Been figuring out how to save and load preferences for some tools and thought I'd share my testing script.</p>
<p dir="auto"><a href="https://gist.github.com/okay-type/ce122159565cbeab320b069010fb011b" rel="nofollow">https://gist.github.com/okay-type/ce122159565cbeab320b069010fb011b</a></p>
<p dir="auto">It's working, but it might not be the best way to manage a larger number of values. And I couldn't figure out what exactly 'registerExtensionDefaults' did. (edit: I think I figured out 'registerExtensionDefaults')</p>
]]></description><link>https://forum.robofont.com/post/2634</link><guid isPermaLink="true">https://forum.robofont.com/post/2634</guid><dc:creator><![CDATA[okaytype]]></dc:creator><pubDate>Wed, 18 Sep 2019 21:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Preferences on Wed, 18 Sep 2019 21:12:27 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/372">@okaytype</a>,</p>
<p dir="auto">nice example, thanks for sharing!</p>
<p dir="auto">the individual attribute names are a good use case for <code>@property</code>:</p>
<pre><code class="language-python">@property
def savedEditTextKey(self):
    return self.prefKey + '.savedEditText'
</code></pre>
<p dir="auto">then later on you can just <code>getExtensionDefault(self.savedEditTextKey)</code></p>
]]></description><link>https://forum.robofont.com/post/2635</link><guid isPermaLink="true">https://forum.robofont.com/post/2635</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Wed, 18 Sep 2019 21:12:27 GMT</pubDate></item><item><title><![CDATA[Reply to Preferences on Wed, 18 Sep 2019 23:28:03 GMT]]></title><description><![CDATA[<p dir="auto">Oh, that's going to be useful. Updated my gist so I don't forget how it works. Thanks.</p>
]]></description><link>https://forum.robofont.com/post/2637</link><guid isPermaLink="true">https://forum.robofont.com/post/2637</guid><dc:creator><![CDATA[okaytype]]></dc:creator><pubDate>Wed, 18 Sep 2019 23:28:03 GMT</pubDate></item></channel></rss>