<?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: Core Data / Array Controller:  Edit on Insert</title>
	<atom:link href="http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/</link>
	<description>...so google can index my head.</description>
	<lastBuildDate>Fri, 10 Feb 2012 00:09:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Frank McPherson</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-23581</link>
		<dc:creator>Frank McPherson</dc:creator>
		<pubDate>Sun, 17 Sep 2006 12:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-23581</guid>
		<description>I&#039;m almost embarrasingly stuck with Core Data right now, can&#039;t even get past the most complete example Apple has on their site, &lt;a href=&quot;http://developer.apple.com/samplecode/CoreRecipes/index.html&quot; rel=&quot;nofollow&quot;&gt;Core Recipes&lt;/a&gt;. I wrote about it &lt;a href=&quot;http://auroralux.net/blog/2006/09/17/problems-with-cocoa-core-data-core-recipes-example/&quot; rel=&quot;nofollow&quot;&gt;in my blog&lt;/a&gt;. 

To the folks questioning the usefulness of bbum&#039;s app: a weight trend over time app is one of those things you could easily solve another way, for example with a spreadsheet. But Cocoa and Core Data are an elegant tool, and it&#039;s gratifying to build simple, useful things with nice tools.</description>
		<content:encoded><![CDATA[<p>I&#8217;m almost embarrasingly stuck with Core Data right now, can&#8217;t even get past the most complete example Apple has on their site, <a href="http://developer.apple.com/samplecode/CoreRecipes/index.html" rel="nofollow">Core Recipes</a>. I wrote about it <a href="http://auroralux.net/blog/2006/09/17/problems-with-cocoa-core-data-core-recipes-example/" >in my blog</a>. </p>
<p>To the folks questioning the usefulness of bbum&#8217;s app: a weight trend over time app is one of those things you could easily solve another way, for example with a spreadsheet. But Cocoa and Core Data are an elegant tool, and it&#8217;s gratifying to build simple, useful things with nice tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert 'Groby' Blum</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-11855</link>
		<dc:creator>Robert 'Groby' Blum</dc:creator>
		<pubDate>Wed, 19 Jul 2006 14:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-11855</guid>
		<description>Any chance of you sharing the rest of the code with us? I.e. the entire app? I&#039;m using  YellowPadAndPen.App right now, and those moving averages sure would be nice... 

BTW: Nate hits it head-on. The large dose of will power is a key ingredient to weight loss. That&#039;s why people like fad diets - they all promise you don&#039;t really need that ;)</description>
		<content:encoded><![CDATA[<p>Any chance of you sharing the rest of the code with us? I.e. the entire app? I&#8217;m using  YellowPadAndPen.App right now, and those moving averages sure would be nice&#8230; </p>
<p>BTW: Nate hits it head-on. The large dose of will power is a key ingredient to weight loss. That&#8217;s why people like fad diets &#8211; they all promise you don&#8217;t really need that <img src='http://www.friday.com/bbum/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hillegass</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-11690</link>
		<dc:creator>Aaron Hillegass</dc:creator>
		<pubDate>Tue, 18 Jul 2006 14:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-11690</guid>
		<description>Thanks for the great snippet of code.  There is one problem: the table view will not properly end editing when an insert occurs.  You really need to take care of this:
&lt;code&gt;
- (IBAction)insertNewWeight:(id)sender;
{
&lt;em&gt;    [[weightEntryTableView window] endEditingFor:nil]; &lt;/em&gt;
	NSManagedObject *insertedObject = [weightEntryArrayController newObject];
	unsigned newRow = [weightinator rawWeightCount];
	[weightEntryArrayController insertObject:insertedObject atArrangedObjectIndex:newRow];
	[weightEntryTableView editColumn:0 row:newRow withEvent:nil select:YES];
	[insertedObject release];
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the great snippet of code.  There is one problem: the table view will not properly end editing when an insert occurs.  You really need to take care of this:<br />
<code><br />
- (IBAction)insertNewWeight:(id)sender;<br />
{<br />
<em>    [[weightEntryTableView window] endEditingFor:nil]; </em><br />
	NSManagedObject *insertedObject = [weightEntryArrayController newObject];<br />
	unsigned newRow = [weightinator rawWeightCount];<br />
	[weightEntryArrayController insertObject:insertedObject atArrangedObjectIndex:newRow];<br />
	[weightEntryTableView editColumn:0 row:newRow withEvent:nil select:YES];<br />
	[insertedObject release];<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-5050</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 24 May 2006 22:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-5050</guid>
		<description>Quality food, Sensible portions, moderate exercise, + large dose willpower

It&#039;s easier said than done.</description>
		<content:encoded><![CDATA[<p>Quality food, Sensible portions, moderate exercise, + large dose willpower</p>
<p>It&#8217;s easier said than done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-5048</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 24 May 2006 18:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-5048</guid>
		<description>Coincidentally, The Sun magazine talks about the food industry in this month&#039;s issue. It is a fairly challenging magazine to find, but there is an excerpt from the article that I have linked to in the last line. It opens up a .pdf. If you would rather check it out through the online table of contents, you can find them here:

http://www.thesunmagazine.org/

The interview and the excerpt from the book &quot;The Omnivore&#039;s Dilemma&quot; really opened up my eyes. As an example, talking about a meal at McDonald&#039;s he says &quot;I wanted to have that meal because I saw it through a whole different lens this time, and that was the lens of corn. That chapter comes at the end of a long section of the book in which I follow a bushel of corn, the cornerstone of the American food chain, to market. I don&#039;t think people have any idea when they look at a McDonald&#039;s menu that they&#039;re mostly looking at different manifestations of corn. It was fed to the animals that were turned into meat; it was used to fry the French fries; it&#039;s the basis of the salad dressings tnd the sodas. With the help of a scientist on theBerkeley campus, I took a McDonald&#039;s meal and put it through a mass spectrometer. We found that a very high percentage of it could be traced back to cornfields in Iowa...&quot;

Interview with Michael Pollan on How The Food Industry Has Changed the Way We Eat
Arnie Cooper

http://www.thesunmagazine.org/365_Pollan.pdf</description>
		<content:encoded><![CDATA[<p>Coincidentally, The Sun magazine talks about the food industry in this month&#8217;s issue. It is a fairly challenging magazine to find, but there is an excerpt from the article that I have linked to in the last line. It opens up a .pdf. If you would rather check it out through the online table of contents, you can find them here:</p>
<p><a href="http://www.thesunmagazine.org/" >http://www.thesunmagazine.org/</a></p>
<p>The interview and the excerpt from the book &#8220;The Omnivore&#8217;s Dilemma&#8221; really opened up my eyes. As an example, talking about a meal at McDonald&#8217;s he says &#8220;I wanted to have that meal because I saw it through a whole different lens this time, and that was the lens of corn. That chapter comes at the end of a long section of the book in which I follow a bushel of corn, the cornerstone of the American food chain, to market. I don&#8217;t think people have any idea when they look at a McDonald&#8217;s menu that they&#8217;re mostly looking at different manifestations of corn. It was fed to the animals that were turned into meat; it was used to fry the French fries; it&#8217;s the basis of the salad dressings tnd the sodas. With the help of a scientist on theBerkeley campus, I took a McDonald&#8217;s meal and put it through a mass spectrometer. We found that a very high percentage of it could be traced back to cornfields in Iowa&#8230;&#8221;</p>
<p>Interview with Michael Pollan on How The Food Industry Has Changed the Way We Eat<br />
Arnie Cooper</p>
<p><a href="http://www.thesunmagazine.org/365_Pollan.pdf" >http://www.thesunmagazine.org/365_Pollan.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbum</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-4551</link>
		<dc:creator>bbum</dc:creator>
		<pubDate>Mon, 22 May 2006 00:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-4551</guid>
		<description>Heh. I love it when anonymous makes an oversimplistic suggestion to the point of useless.

I minimized HFCS consumption many, many years ago and cut it out pretty much entirely in the last couple of years.

Yet, I still gained weight.

Without also exercising and actually eating right (i.e. appropriate sized portions &amp; focus on preparation), eliminating HFCS does little more than following any of the other fad diets.</description>
		<content:encoded><![CDATA[<p>Heh. I love it when anonymous makes an oversimplistic suggestion to the point of useless.</p>
<p>I minimized HFCS consumption many, many years ago and cut it out pretty much entirely in the last couple of years.</p>
<p>Yet, I still gained weight.</p>
<p>Without also exercising and actually eating right (i.e. appropriate sized portions &#038; focus on preparation), eliminating HFCS does little more than following any of the other fad diets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-4464</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Sun, 21 May 2006 19:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-4464</guid>
		<description>just cut out High Fructose Corn Syrup.  That is all.</description>
		<content:encoded><![CDATA[<p>just cut out High Fructose Corn Syrup.  That is all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-3761</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 19 May 2006 18:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-3761</guid>
		<description>I completely agree. Good ingredients and watching the portion sizes are key...</description>
		<content:encoded><![CDATA[<p>I completely agree. Good ingredients and watching the portion sizes are key&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbum</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-3760</link>
		<dc:creator>bbum</dc:creator>
		<pubDate>Fri, 19 May 2006 17:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-3760</guid>
		<description>hahahahaha...  &quot;Livable&quot; means not having to give up good food.  I&#039;m finding that if I focus on preparation and quality of ingredients, I can produce really yummy meals that are actually quite good for me.

Sure, the salmon had a bit of a butter basting, but less than a half a stick for a 9 lbs salmon really isn&#039;t that much!   And the turkey was plain beyond the basting goo.</description>
		<content:encoded><![CDATA[<p>hahahahaha&#8230;  &#8220;Livable&#8221; means not having to give up good food.  I&#8217;m finding that if I focus on preparation and quality of ingredients, I can produce really yummy meals that are actually quite good for me.</p>
<p>Sure, the salmon had a bit of a butter basting, but less than a half a stick for a 9 lbs salmon really isn&#8217;t that much!   And the turkey was plain beyond the basting goo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/comment-page-1/#comment-3759</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 19 May 2006 17:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/05/18/core-data-array-controller-edit-on-insert/#comment-3759</guid>
		<description>If livable lifestyle changes mean getting rid of the BGE, can I have it? ;-)</description>
		<content:encoded><![CDATA[<p>If livable lifestyle changes mean getting rid of the BGE, can I have it? <img src='http://www.friday.com/bbum/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

