<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codec &#187; NSBundle</title>
	<atom:link href="http://www.trembl.org/codec/tag/nsbundle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trembl.org/codec</link>
	<description>A Personal Polylogic Code/Decode &#039;Zettelkasten&#039;</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>UIImage &amp; cache</title>
		<link>http://www.trembl.org/codec/16/</link>
		<comments>http://www.trembl.org/codec/16/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 02:19:52 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[memory leak]]></category>
		<category><![CDATA[NSBundle]]></category>
		<category><![CDATA[UIImage]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=16</guid>
		<description><![CDATA[&#91;UIImage imageNamed:@&#34;image.jpg&#34;&#93; caches image for lifetime of app. &#91;UIImage imageWithContentsOfFile:&#91;&#91;NSBundle mainBundle&#93; pathForResource:@&#34;image&#34; ofType:@&#34;png&#34;&#93;&#93; no caching, always loaded from memory. after caching, faster display problem, running out of memory]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>UIImage imageNamed<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;image.jpg&quot;</span><span style="color: #009900;">&#93;</span></pre></div></div>

<p>caches image for lifetime of app.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span>UIImage imageWithContentsOfFile<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSBundle</span> mainBundle<span style="color: #002200;">&#93;</span> pathForResource<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;image&quot;</span> ofType<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;png&quot;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span></pre></div></div>

<p>no caching, always loaded from memory.</p>
<p>after caching, faster display<br />
problem, running out of memory</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

