<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Iphonelite3</title>
	<atom:link href="http://iphonelite3.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphonelite3.wordpress.com</link>
	<description>Simple SQLite3 serialization</description>
	<lastBuildDate>Thu, 30 Apr 2009 14:47:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iphonelite3.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Iphonelite3</title>
		<link>http://iphonelite3.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iphonelite3.wordpress.com/osd.xml" title="Iphonelite3" />
	<atom:link rel='hub' href='http://iphonelite3.wordpress.com/?pushpress=hub'/>
		<item>
		<title>First app using iPhonelite3</title>
		<link>http://iphonelite3.wordpress.com/2009/04/30/first-app-using-iphonelite3/</link>
		<comments>http://iphonelite3.wordpress.com/2009/04/30/first-app-using-iphonelite3/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:47:00 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=39</guid>
		<description><![CDATA[My first app based on iPhonelite3 is out WindSesh. Contact me if you want a Promo code, with the current feature set it is mostly useful for its intended audience. Check the web site for details.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=39&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My first app based on iPhonelite3 is out <a href="http://windsesh.com/welcome/iphone_app">WindSesh</a>. Contact me if you want a Promo code, with the current feature set it is mostly useful for its intended audience. Check the web site for details.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=39&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/04/30/first-app-using-iphonelite3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>UITableView and sqlite3</title>
		<link>http://iphonelite3.wordpress.com/2009/04/30/uitableview-and-sqlite3/</link>
		<comments>http://iphonelite3.wordpress.com/2009/04/30/uitableview-and-sqlite3/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:39:16 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=32</guid>
		<description><![CDATA[After about 20-30 entries displaying a table directly out of the database does not work anymore. The UI is not smooth and you can feel the load time. Need to cache in memory.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=32&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After about 20-30 entries displaying a table directly out of the database does not work anymore. The UI is not smooth and you can feel the load time. Need to cache in memory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=32&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/04/30/uitableview-and-sqlite3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Having an id member</title>
		<link>http://iphonelite3.wordpress.com/2009/03/14/having-an-id-member/</link>
		<comments>http://iphonelite3.wordpress.com/2009/03/14/having-an-id-member/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 05:46:44 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=35</guid>
		<description><![CDATA[On the server side of my soon to be released application (haha), I have an id field in all my tables. This is the foreign key used by all the relationships. On the iPhone id is a type and although it can also be a variable name I avoided using it in my initial implementation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=35&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On the server side of my soon to be released application (haha), I have an id field in all my tables. This is the foreign key used by all the relationships. On the iPhone id is a type and although it can also be a variable name I avoided using it in my initial implementation of the code. Instead I use _id for the sqlite3 tables and the mapped objects.</p>
<p>This is an inconsistency that has been nagging me since the first day on this project. I will likely try to eliminate it by moving the iPhone code to also use id as the variable name. This is just a heads up for now.</p>
<p>Also coming soon some initial implementation of delete with where arguments, currently only delete of all the records is implemented.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=35&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/03/14/having-an-id-member/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Gis extensions, not</title>
		<link>http://iphonelite3.wordpress.com/2009/03/01/gis-extensions-not/</link>
		<comments>http://iphonelite3.wordpress.com/2009/03/01/gis-extensions-not/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 16:53:19 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=33</guid>
		<description><![CDATA[It seems there are starting to be some GIS extensions for sqlite3, one of the promising one being Spatialie. However this requires Sqlite version 3.6.2 and that is not available on the iPhone at this time. My current data requirements are in the thousand of records and hopefully there is enough CPU power to handle [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=33&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems there are starting to be some <a href="http://www.opengeospatial.org/">GIS</a> extensions for sqlite3, one of the promising one being <a href="http://www.gaia-gis.it/spatialite/">Spatialie</a>. However this requires Sqlite version 3.6.2 and that is not available on the iPhone at this time.</p>
<p>My current data requirements are in the thousand of records and hopefully there is enough CPU power to handle this without spatial indexes. I am considering adding some new classes based around a Lite3Predicate to help with GIS related functionality.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=33&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/03/01/gis-extensions-not/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>GTM Test</title>
		<link>http://iphonelite3.wordpress.com/2009/02/10/gtm-test/</link>
		<comments>http://iphonelite3.wordpress.com/2009/02/10/gtm-test/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 07:55:37 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=29</guid>
		<description><![CDATA[I moved the GTM Test support files under Lite3/GTMTest to allow for easier integration in new projects. You still need to create an Unit test target make sure that the Unit test files are associated only with the new target (otherwise you get a link error about having to _main functions then) define ALog in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=29&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I moved the GTM Test support files under Lite3/GTMTest to allow for easier integration in new projects. You still need to</p>
<ol>
<li>create an Unit test target</li>
<li>make sure that the Unit test files are associated only with the new target (otherwise you get a link error about having to _main functions then)</li>
<li>define ALog in the precompiled header file and define -DDEBUG as other OTHER_CFLAGS</li>
<li>add sqlite3 to the project</li>
</ol>
<p><code><br />
#ifdef DEBUG<br />
#    define DLog(...) NSLog(__VA_ARGS__)<br />
#else<br />
#    define DLog(...) /* */<br />
#endif<br />
#define ALog(...) NSLog(__VA_ARGS__)<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=29&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/02/10/gtm-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Disliking more and more sqlite3_exec with callback</title>
		<link>http://iphonelite3.wordpress.com/2009/02/03/disliking-more-and-more-sqlite3_exec-with-callback/</link>
		<comments>http://iphonelite3.wordpress.com/2009/02/03/disliking-more-and-more-sqlite3_exec-with-callback/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 14:38:06 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=27</guid>
		<description><![CDATA[The callback approach in sqlite3_exec is really complicating my code. I used it initially for select: and then re-used for count: with where clause. The problem is that you have to pass the context to the C function and back and you need flexibility in handling the result set. I will cleanup the code and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=27&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The callback approach in sqlite3_exec is really complicating my code. I used it initially for select: and then re-used for count: with where clause.  The problem is that you have to pass the context to the C function and back and you need flexibility in handling the result set. I will cleanup the code and move to the more verbose sqlite3_prepare_v2 and friends.</p>
<p>With the modification above I will be able to add a small cache of compiled statements, will have to run some memory/performance numbers on it to tune it for my usage.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=27&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/02/03/disliking-more-and-more-sqlite3_exec-with-callback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Deserializing json</title>
		<link>http://iphonelite3.wordpress.com/2009/02/01/deserializing-json/</link>
		<comments>http://iphonelite3.wordpress.com/2009/02/01/deserializing-json/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 07:04:14 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=23</guid>
		<description><![CDATA[When you rely on the default json deserialization in Rails the json for each object starts with its own root. For example [ {"user": {"id":1, "name":"Jon Dhoe"}, {"user":{}}] The code in iphonelite3 tries to take care of this when processing the NSDictionary resulting from the json parsing. You can actually change the behavior of Rails [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=23&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you rely on the default json deserialization in Rails the json for each object starts with its own root. For example<br />
<code><br />
[ {"user": {"id":1, "name":"Jon Dhoe"}, {"user":{}}]<br />
</code><br />
The code in iphonelite3 tries to take care of this when processing the NSDictionary resulting from the json parsing.</p>
<p>You can actually change the behavior of Rails in file new_rails_defaults.rb, change the true to false in the following line.<br />
<code><br />
ActiveRecord::Base.include_root_in_json = true<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=23&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/02/01/deserializing-json/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>GTM Unit tests and memory allocation</title>
		<link>http://iphonelite3.wordpress.com/2009/01/30/gtm-unit-tests-and-memory-allocation/</link>
		<comments>http://iphonelite3.wordpress.com/2009/01/30/gtm-unit-tests-and-memory-allocation/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 23:31:47 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=21</guid>
		<description><![CDATA[While everybody says that memory allocation is trivial in Cocoa it took me a while to be confident with it. You can read the docs all you want, memory allocation bugs are hard to track down and it is hard to get the proper confidence. Part of my challenge is that it is not always [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=21&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While everybody says that memory allocation is trivial in Cocoa it took me a while to be confident with it. You can read the docs all you want, memory allocation bugs are hard to track down and it is hard to get the proper confidence. Part of my challenge is that it is not always clear which functions of the framework (or even yours) are doing an autoRelease() or not. I guess you need to spend here 10% of the 10000 hours required to become effective in Cocoa programming <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Enter the iPhone Unit Test in the Google Toolbox for Mac: <a href="http://code.google.com/p/google-toolbox-for-mac/">http://code.google.com/p/google-toolbox-for-mac/</a>.<br />
An autorelease pool is setup before each test and then released. This allows you to play with retain and release, make the program crash by releasing twice or releasing an autoreleased pointer. I found out that being able to predictably crash the unit tests significantly increased my confidence with the memory management functions.</p>
<p>The GTM Unit Tests are integrated in the <a href="http://github.com/decodeideas/iphonelite3/tree/master">iphonelite3</a> on github. Feel free to use as a starting point for your own projects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=21&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/01/30/gtm-unit-tests-and-memory-allocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Unit tests crash</title>
		<link>http://iphonelite3.wordpress.com/2009/01/30/unit-tests-crash/</link>
		<comments>http://iphonelite3.wordpress.com/2009/01/30/unit-tests-crash/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 21:51:48 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/2009/01/30/unit-tests-crash/</guid>
		<description><![CDATA[As in real life the following piece of code will crash your unit test and the error message will be totally useless. -(void) init { } The following will work -(id) init { [super init]; return self; } Better start small, test often and pay attention.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=17&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As in real life the following piece of code will crash your unit test and the error message will be totally useless.<br />
<code><br />
-(void) init {<br />
}<br />
</code></p>
<p>The following will work<br />
<code><br />
-(id) init {<br />
   [super init];<br />
   return self;<br />
}<br />
</code></p>
<p>Better start small, test often and pay attention.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=17&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/01/30/unit-tests-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
		<item>
		<title>Code assumptions</title>
		<link>http://iphonelite3.wordpress.com/2009/01/30/code-assumptions/</link>
		<comments>http://iphonelite3.wordpress.com/2009/01/30/code-assumptions/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 16:10:03 +0000</pubDate>
		<dc:creator>iphonelite3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iphonelite3.wordpress.com/?p=12</guid>
		<description><![CDATA[The serializable classes do not have to define from a base class, this is more similar to Hibernate thant ActiveRecord in that aspect. Right now the table and class name are arbitrary but I am thinking about following the ActiveRecord convention (lowercase class name and add an &#8216;s&#8217;). Each class has an int id field [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=12&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The serializable classes do not have to define from a base class, this is more similar to Hibernate thant ActiveRecord in that aspect.</p>
<p>Right now the table and class name are arbitrary but I am thinking about following the ActiveRecord convention (lowercase class name and add an &#8216;s&#8217;).</p>
<p>Each class has an int id field (synthetic id). This is mapped to a int _id inside Objective-C (since id is a reserved word).</p>
<p>For each database field that is to be serialized you define a property, the names have to match.</p>
<p>To symbolize a ManyToMany relationship you define a C array of objects of the other side.</p>
<p><code></p>
<p>@interface User</p>
<p>@end</p>
<p>@interface Group</p>
<p>User** users;</p>
<p>@end</p>
<p></code></p>
<p>The name of the link table uses the ActiveRecord convention: first table name _ second table name.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphonelite3.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphonelite3.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphonelite3.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphonelite3.wordpress.com&amp;blog=6371592&amp;post=12&amp;subd=iphonelite3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphonelite3.wordpress.com/2009/01/30/code-assumptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">iphonelite3</media:title>
		</media:content>
	</item>
	</channel>
</rss>
