<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: iPhone Programming Tutorial â€“ Creating a ToDo List Using SQLite Part 2</title>
	<atom:link href="http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/</link>
	<description>Conquering the mobile universe</description>
	<lastBuildDate>Fri, 10 Feb 2012 21:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: on line to do list</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-8932</link>
		<dc:creator>on line to do list</dc:creator>
		<pubDate>Thu, 08 Dec 2011 11:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-8932</guid>
		<description>Great Article . Thank you. 

For the users who read this article,Â  Here is the Part 3 

http://icodeblog.com/2008/09/10/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-3/


---------------------
online to do list
http://onlinedolist.com</description>
		<content:encoded><![CDATA[<p>Great Article . Thank you. </p>
<p>For the users who read this article,Â  Here is the Part 3 </p>
<p><a href="http://icodeblog.com/2008/09/10/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-3/" rel="nofollow">http://icodeblog.com/2008/09/10/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-3/</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
online to do list<br />
<a href="http://onlinedolist.com" rel="nofollow">http://onlinedolist.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freek Wielstra</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-7142</link>
		<dc:creator>Freek Wielstra</dc:creator>
		<pubDate>Fri, 15 Jul 2011 14:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-7142</guid>
		<description>I have a few remarks about both this and part 1.

First, it&#039;s generally not recommended [citation needed] to spread SQL queries and data retrieval logic over the application: this tutorial indicates that retrieving the full list from the DB goes in the application delegate, and that retrieving of specific Todo model data goes into the Todo object itself.

It&#039;s generally considered better [citation needed] to move data access logic into a separate data access object. This keeps data retrieval and connection logic out of the application intitialization class.

Second, there&#039;s a few things turned deprecated since this tutorial was published. In particular, instead of the TableCell&#039;s initWithFrame as indicated in this tutorial, one should override initWithStyle. The rest of the code remains pretty much the same though, nothing major to be changed.

Finally, and this refers to the initial data retrieval indicated in the first part of the tutorial, you may want to add some error handling in case you accidentally make a typo in your SQL or whatever (like I did). Add an else to the &#039;if (sqlite3_prepare_v2(/*blah*/) == SQLITE_OK)&#039;:

Â  Â  Â  Â  } else {Â  Â  Â  Â  Â  Â  NSLog(@&quot;%@&quot;, [NSString stringWithUTF8String:sqlite3_errmsg(database)]);Â  Â  Â  Â  }

This&#039;ll output the error message to the console if you run it from the iphone simulator.

For the rest: It&#039;s a lot of code (especially writing out the custom TableCell layout), but everyone has to have done something like that at least once.</description>
		<content:encoded><![CDATA[<p>I have a few remarks about both this and part 1.</p>
<p>First, it&#8217;s generally not recommended [citation needed] to spread SQL queries and data retrieval logic over the application: this tutorial indicates that retrieving the full list from the DB goes in the application delegate, and that retrieving of specific Todo model data goes into the Todo object itself.</p>
<p>It&#8217;s generally considered better [citation needed] to move data access logic into a separate data access object. This keeps data retrieval and connection logic out of the application intitialization class.</p>
<p>Second, there&#8217;s a few things turned deprecated since this tutorial was published. In particular, instead of the TableCell&#8217;s initWithFrame as indicated in this tutorial, one should override initWithStyle. The rest of the code remains pretty much the same though, nothing major to be changed.</p>
<p>Finally, and this refers to the initial data retrieval indicated in the first part of the tutorial, you may want to add some error handling in case you accidentally make a typo in your SQL or whatever (like I did). Add an else to the &#8216;if (sqlite3_prepare_v2(/*blah*/) == SQLITE_OK)&#8217;:</p>
<p>Â  Â  Â  Â  } else {Â  Â  Â  Â  Â  Â  NSLog(@&#8221;%@&#8221;, [NSString stringWithUTF8String:sqlite3_errmsg(database)]);Â  Â  Â  Â  }</p>
<p>This&#8217;ll output the error message to the console if you run it from the iphone simulator.</p>
<p>For the rest: It&#8217;s a lot of code (especially writing out the custom TableCell layout), but everyone has to have done something like that at least once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pvan1017</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6869</link>
		<dc:creator>pvan1017</dc:creator>
		<pubDate>Tue, 21 Jun 2011 14:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6869</guid>
		<description>Not sure why but I had to useÂ stringByAppendingPathComponentÂ instead ofÂ stringByAppendingFormatÂ  in theÂ createEditableCopyOfDatabaseIfNeededÂ method.


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #421b7c}
</description>
		<content:encoded><![CDATA[<p>Not sure why but I had to useÂ stringByAppendingPathComponentÂ instead ofÂ stringByAppendingFormatÂ  in theÂ createEditableCopyOfDatabaseIfNeededÂ method.</p>
<p>p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #421b7c}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SPatel</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6797</link>
		<dc:creator>SPatel</dc:creator>
		<pubDate>Sat, 18 Jun 2011 07:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6797</guid>
		<description>I say 5 because I had 5 items in my database (not 4 as in the tutorial).</description>
		<content:encoded><![CDATA[<p>I say 5 because I had 5 items in my database (not 4 as in the tutorial).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SPatel</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6796</link>
		<dc:creator>SPatel</dc:creator>
		<pubDate>Sat, 18 Jun 2011 07:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6796</guid>
		<description>I had to change the numberOfSectionsInTableView to return 1 instead of the array count. Â I know that doesn&#039;t make sense, but for some reason this method was being called multiple times (I&#039;m guessing 5). Â I haven&#039;t worked out why yet.

Anyway when I did that it all works fine.</description>
		<content:encoded><![CDATA[<p>I had to change the numberOfSectionsInTableView to return 1 instead of the array count. Â I know that doesn&#8217;t make sense, but for some reason this method was being called multiple times (I&#8217;m guessing 5). Â I haven&#8217;t worked out why yet.</p>
<p>Anyway when I did that it all works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeRefiner</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6190</link>
		<dc:creator>CodeRefiner</dc:creator>
		<pubDate>Wed, 20 Apr 2011 00:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6190</guid>
		<description>Scratch that, she works fine :) </description>
		<content:encoded><![CDATA[<p>Scratch that, she works fine <img src='http://www.icodeblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeRefiner</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6191</link>
		<dc:creator>CodeRefiner</dc:creator>
		<pubDate>Wed, 20 Apr 2011 00:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6191</guid>
		<description>Scratch that, she works fine :) </description>
		<content:encoded><![CDATA[<p>Scratch that, she works fine <img src='http://www.icodeblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeRefiner</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6192</link>
		<dc:creator>CodeRefiner</dc:creator>
		<pubDate>Wed, 20 Apr 2011 00:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6192</guid>
		<description>Scratch that, she works fine :) </description>
		<content:encoded><![CDATA[<p>Scratch that, she works fine <img src='http://www.icodeblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeRefiner</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-6189</link>
		<dc:creator>CodeRefiner</dc:creator>
		<pubDate>Wed, 20 Apr 2011 00:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-6189</guid>
		<description>This program breaks the second you try to access the appDelegate the way you do so in your code. 

todoAppDelegate should be accessed differently when trying to access the todos array. 

Shame it was a good tutorial up until now. 

</description>
		<content:encoded><![CDATA[<p>This program breaks the second you try to access the appDelegate the way you do so in your code. </p>
<p>todoAppDelegate should be accessed differently when trying to access the todos array. </p>
<p>Shame it was a good tutorial up until now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ù…Ù†ØªØ¯ÙŠØ§Øª Ø§Ù„Ù…Ù‡Ø§</title>
		<link>http://www.icodeblog.com/2008/09/02/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-2/#comment-4237</link>
		<dc:creator>Ù…Ù†ØªØ¯ÙŠØ§Øª Ø§Ù„Ù…Ù‡Ø§</dc:creator>
		<pubDate>Sun, 06 Feb 2011 11:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=293#comment-4237</guid>
		<description>i think great post every one like it</description>
		<content:encoded><![CDATA[<p>i think great post every one like it</p>
]]></content:encoded>
	</item>
</channel>
</rss>

