<?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 &#8211; Core Data and UITableView. A drill-down application</title>
	<atom:link href="http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/</link>
	<description>Code, Code, Revolution!</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:26:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ron</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12500</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Tue, 27 Jul 2010 15:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12500</guid>
		<description>I have modified and expanded on your CoreDataTest app sample, and I have successfully parsed data from my host site via XMLParser. The data is now in my Core Data Object on the phone. But the problem I have is that I would like to navigate to selected view controllers based upon the selection made (not just the one you have). I have worked with this for over a week now, and I cannot seem to get it right. If you would like to get my version of your app, please email me [ronbowalker@yahoo.com], or go to www.ihappyapps.com. I will try and park a link in there.
All help from you and others would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>I have modified and expanded on your CoreDataTest app sample, and I have successfully parsed data from my host site via XMLParser. The data is now in my Core Data Object on the phone. But the problem I have is that I would like to navigate to selected view controllers based upon the selection made (not just the one you have). I have worked with this for over a week now, and I cannot seem to get it right. If you would like to get my version of your app, please email me [ronbowalker@yahoo.com], or go to <a href="http://www.ihappyapps.com">http://www.ihappyapps.com</a>. I will try and park a link in there.<br />
All help from you and others would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12422</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Sat, 24 Jul 2010 15:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12422</guid>
		<description>@Chris,

The sample has been tested for memory leaks before I published it. It&#039;s impossible to point out the leaks in your code from what you&#039;ve posted, Core Data Helper returns an autoreleased array so there&#039;s no leak there.

// Björn</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>The sample has been tested for memory leaks before I published it. It&#8217;s impossible to point out the leaks in your code from what you&#8217;ve posted, Core Data Helper returns an autoreleased array so there&#8217;s no leak there.</p>
<p>// Björn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12380</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 22 Jul 2010 09:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12380</guid>
		<description>Hi Bjorn.  Thanks for your great tutorial.

I&#039;ve used the guts in my application and its working well apart from memory leaks (with your new version).

There is an initial one, both in my app plus also your code - as can be seen if you run it with Performance Tools/ Leaks.  As the sample is fairly simple, it gets away with it.

But on mine, as I reload the XML when requested (for an update check), it crashes after a few times.

The problem seems to be in Core Data Helper where, as far as I can see, mutableFetchResults is allocated but not released.  I&#039;ve tried adding it to an Autorelease pool, but it always crashes immediately then!

I&#039;m still coming to terms with memory management (reading all that I can on it), so apologies if this is obvious to others.

Any help would be warmly welcomed.

Chris.</description>
		<content:encoded><![CDATA[<p>Hi Bjorn.  Thanks for your great tutorial.</p>
<p>I&#8217;ve used the guts in my application and its working well apart from memory leaks (with your new version).</p>
<p>There is an initial one, both in my app plus also your code &#8211; as can be seen if you run it with Performance Tools/ Leaks.  As the sample is fairly simple, it gets away with it.</p>
<p>But on mine, as I reload the XML when requested (for an update check), it crashes after a few times.</p>
<p>The problem seems to be in Core Data Helper where, as far as I can see, mutableFetchResults is allocated but not released.  I&#8217;ve tried adding it to an Autorelease pool, but it always crashes immediately then!</p>
<p>I&#8217;m still coming to terms with memory management (reading all that I can on it), so apologies if this is obvious to others.</p>
<p>Any help would be warmly welcomed.</p>
<p>Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12281</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 17 Jul 2010 11:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12281</guid>
		<description>Hey Bjorn, Ivan,

Thanks heaps for the tips, I&#039;m getting on them now to see if I can work it out. I&#039;ve been trying for a while to get the data in where I want it but keep running into walls so I hope I can find a way through. I&#039;m trying to get the extra data info from the detail view into the table view but its proving to be a problem so far. I don&#039;t know if I have to add extra attributes at the second level or if I can  just pull the data in from level 3; driving me mad at the moment. I can view the data from object in an array but I just can&#039;t isolate it to use in the TableView. Very frustrating. Anyway, thanks for the links I&#039;ll have a look and see what I can work out from there</description>
		<content:encoded><![CDATA[<p>Hey Bjorn, Ivan,</p>
<p>Thanks heaps for the tips, I&#8217;m getting on them now to see if I can work it out. I&#8217;ve been trying for a while to get the data in where I want it but keep running into walls so I hope I can find a way through. I&#8217;m trying to get the extra data info from the detail view into the table view but its proving to be a problem so far. I don&#8217;t know if I have to add extra attributes at the second level or if I can  just pull the data in from level 3; driving me mad at the moment. I can view the data from object in an array but I just can&#8217;t isolate it to use in the TableView. Very frustrating. Anyway, thanks for the links I&#8217;ll have a look and see what I can work out from there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12276</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Sat, 17 Jul 2010 08:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12276</guid>
		<description>@Tony,

Check out the samples from Apple. There&#039;s a great sample showing how to efficiently add thumbnails to table rows: http://developer.apple.com/iphone/library/samplecode/LazyTableImages/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009394 

// Björn</description>
		<content:encoded><![CDATA[<p>@Tony,</p>
<p>Check out the samples from Apple. There&#8217;s a great sample showing how to efficiently add thumbnails to table rows: <a href="http://developer.apple.com/iphone/library/samplecode/LazyTableImages/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009394">http://developer.apple.com/iphone/library/samplecode/LazyTableImages/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009394</a> </p>
<p>// Björn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12275</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sat, 17 Jul 2010 08:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12275</guid>
		<description>Tony,

try reading this &lt;a href=&quot;http://petermcintyre.wordpress.com/2010/02/24/full-function-core-data-example-app/&quot; rel=&quot;nofollow&quot;&gt;http://petermcintyre.wordpress.com/2010/02/24/full-function-core-data-example-app/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Tony,</p>
<p>try reading this <a href="http://petermcintyre.wordpress.com/2010/02/24/full-function-core-data-example-app/">http://petermcintyre.wordpress.com/2010/02/24/full-function-core-data-example-app/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12265</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 17 Jul 2010 02:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12265</guid>
		<description>Hi Bjorn,

Just want to say thanks for such a great tutorial and example code, its been a great help in getting me started in Core Data and building apps for the iPhone in general. I&#039;ve managed to understand how most everything works in your example but I&#039;m struggling with creating a detailed TableView. I want to add a thumbnail and description to the TableView but I can&#039;t get to the data. I&#039;m not sure how to go about it as the attribute data doesn&#039;t seem to be available until the detail view is displayed, so I&#039;m not sure where I should be looking.  Grateful for any help you might be able to give me for this.</description>
		<content:encoded><![CDATA[<p>Hi Bjorn,</p>
<p>Just want to say thanks for such a great tutorial and example code, its been a great help in getting me started in Core Data and building apps for the iPhone in general. I&#8217;ve managed to understand how most everything works in your example but I&#8217;m struggling with creating a detailed TableView. I want to add a thumbnail and description to the TableView but I can&#8217;t get to the data. I&#8217;m not sure how to go about it as the attribute data doesn&#8217;t seem to be available until the detail view is displayed, so I&#8217;m not sure where I should be looking.  Grateful for any help you might be able to give me for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12104</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sat, 10 Jul 2010 23:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12104</guid>
		<description>Hi Björn! This is a great tutorial!
How come you don’t use NSFetchedResultsController to populate each level of UITableView? How could the code be rearranged to do it using NSFetchedResultsController? Would every level have to have it’s own view conroller and it’s own NSFetchedResultsController? Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Björn! This is a great tutorial!<br />
How come you don’t use NSFetchedResultsController to populate each level of UITableView? How could the code be rearranged to do it using NSFetchedResultsController? Would every level have to have it’s own view conroller and it’s own NSFetchedResultsController? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12060</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Fri, 09 Jul 2010 04:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12060</guid>
		<description>Thanks Björn for the response, i changed the names of the entities. And updated the model file accordingly too. But it just keep returning the same error of not being able to read the &quot;Staff Name&quot;.

After several attempts, i have narrowed the portion of the error to the following code i have.

else if([elementName isEqualToString:@&quot;Staff&quot;])
	{	
		
		Staff *s = (Staff *)[NSEntityDescription insertNewObjectForEntityForName:@&quot;Staff&quot; inManagedObjectContext:managedObjectContext];
		NSLog(@&quot;%@&quot;,@&quot;Before setting values&quot;);
		[s setName:[attributeDict objectForKey:@&quot;name&quot;]];
		[s setEmail:[attributeDict objectForKey:@&quot;email&quot;]];	
		[s setPhone:[attributeDict objectForKey:@&quot;phone&quot;]];
		[s setPosition:[attributeDict objectForKey:@&quot;position&quot;]];
		
		[currentCourse addCourseToStaffObject:s];
		NSLog(@&quot;%@&quot;,@&quot;After setting values&quot;);
		NSLog(@&quot;%@&quot;,s.Name);
	}

And this are the response i got from the console

2010-07-09 12:01:44.870 StaffDirectory[596:207] Before setting values
2010-07-09 12:01:44.871 StaffDirectory[596:207] After setting values
2010-07-09 12:01:44.872 StaffDirectory[596:207] *** -[Staff Name]: unrecognized selector sent to instance 0x161d610
2010-07-09 12:01:44.872 StaffDirectory[596:207] *** Terminating app due to uncaught exception &#039;NSInvalidArgumentException&#039;, reason: &#039;*** -[Staff Name]: unrecognized selector sent to instance 0x161d610&#039;
2010-07-09 12:01:44.873 StaffDirectory[596:207] Stack: (
    807902715,
    2426455305,
    808284155,
    807854166,
    807706786,
    18269,
    811133086,
    7450485,
    7465080,
    811130623,
    16985,
    9320,
    814713539,
    814750709,
    814739251,
    814722434,
    814748641,
    839148405,
    807687520,
    807683624,
    814715661,
    814752238,
    8964,
    8818
)

I greatly appreciate the help, thanks again for the fast response. 

Jake.</description>
		<content:encoded><![CDATA[<p>Thanks Björn for the response, i changed the names of the entities. And updated the model file accordingly too. But it just keep returning the same error of not being able to read the &#8220;Staff Name&#8221;.</p>
<p>After several attempts, i have narrowed the portion of the error to the following code i have.</p>
<p>else if([elementName isEqualToString:@"Staff"])<br />
	{	</p>
<p>		Staff *s = (Staff *)[NSEntityDescription insertNewObjectForEntityForName:@"Staff" inManagedObjectContext:managedObjectContext];<br />
		NSLog(@&#8221;%@&#8221;,@&#8221;Before setting values&#8221;);<br />
		[s setName:[attributeDict objectForKey:@"name"]];<br />
		[s setEmail:[attributeDict objectForKey:@"email"]];<br />
		[s setPhone:[attributeDict objectForKey:@"phone"]];<br />
		[s setPosition:[attributeDict objectForKey:@"position"]];</p>
<p>		[currentCourse addCourseToStaffObject:s];<br />
		NSLog(@&#8221;%@&#8221;,@&#8221;After setting values&#8221;);<br />
		NSLog(@&#8221;%@&#8221;,s.Name);<br />
	}</p>
<p>And this are the response i got from the console</p>
<p>2010-07-09 12:01:44.870 StaffDirectory[596:207] Before setting values<br />
2010-07-09 12:01:44.871 StaffDirectory[596:207] After setting values<br />
2010-07-09 12:01:44.872 StaffDirectory[596:207] *** -[Staff Name]: unrecognized selector sent to instance 0&#215;161d610<br />
2010-07-09 12:01:44.872 StaffDirectory[596:207] *** Terminating app due to uncaught exception &#8216;NSInvalidArgumentException&#8217;, reason: &#8216;*** -[Staff Name]: unrecognized selector sent to instance 0&#215;161d610&#8242;<br />
2010-07-09 12:01:44.873 StaffDirectory[596:207] Stack: (<br />
    807902715,<br />
    2426455305,<br />
    808284155,<br />
    807854166,<br />
    807706786,<br />
    18269,<br />
    811133086,<br />
    7450485,<br />
    7465080,<br />
    811130623,<br />
    16985,<br />
    9320,<br />
    814713539,<br />
    814750709,<br />
    814739251,<br />
    814722434,<br />
    814748641,<br />
    839148405,<br />
    807687520,<br />
    807683624,<br />
    814715661,<br />
    814752238,<br />
    8964,<br />
    8818<br />
)</p>
<p>I greatly appreciate the help, thanks again for the fast response. </p>
<p>Jake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron W</title>
		<link>http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/comment-page-2/#comment-12058</link>
		<dc:creator>Ron W</dc:creator>
		<pubDate>Fri, 09 Jul 2010 01:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=620#comment-12058</guid>
		<description>Yes Bjorn, I have set the Autorotate code in place, but the context width does not widen to the landscape size. Can you help me with this frame.width modification? It seems to be connected to the descriptionframe size. I am not succeeding in getting this right. PLEASE help!!!!. The top coordinate appears to need adjustment as well. I am studying CG settings to see what I can do in the meantime, but everything I do messes it all up.

Thanks for the fast response earlier. I appreciate the help.
Ron W</description>
		<content:encoded><![CDATA[<p>Yes Bjorn, I have set the Autorotate code in place, but the context width does not widen to the landscape size. Can you help me with this frame.width modification? It seems to be connected to the descriptionframe size. I am not succeeding in getting this right. PLEASE help!!!!. The top coordinate appears to need adjustment as well. I am studying CG settings to see what I can do in the meantime, but everything I do messes it all up.</p>
<p>Thanks for the fast response earlier. I appreciate the help.<br />
Ron W</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: blog.sallarp.com @ 2010-07-30 17:13:05 -->