<?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: Drag and Drop Rearranging in Table Views with Core Data</title>
	<atom:link href="http://www.timisted.net/blog/archive/core-data-drag-drop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timisted.net/blog/archive/core-data-drag-drop/</link>
	<description>Cocoa Programming and Other Things</description>
	<lastBuildDate>Thu, 09 Sep 2010 13:34:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Metadata &#124; Core Data Framework &#8211; z czym to się je?</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-1319</link>
		<dc:creator>Metadata &#124; Core Data Framework &#8211; z czym to się je?</dc:creator>
		<pubDate>Mon, 15 Mar 2010 21:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-1319</guid>
		<description>[...] Building Core Data Application Cocoa for Scientists: iTunes-ifying a Core Data App Drag and Drop Rearranging in Table Views with Core Data [...]</description>
		<content:encoded><![CDATA[<p>[...] Building Core Data Application Cocoa for Scientists: iTunes-ifying a Core Data App Drag and Drop Rearranging in Table Views with Core Data [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobidobi</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-913</link>
		<dc:creator>Tobidobi</dc:creator>
		<pubDate>Fri, 12 Feb 2010 09:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-913</guid>
		<description>Great article, Tim. Thank you!</description>
		<content:encoded><![CDATA[<p>Great article, Tim. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-773</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-773</guid>
		<description>Thanks, Glen; I now remember that I found the bug shortly after posting the code and completely forgot to update it.

Quite a lot going on recently, but normal service should be resumed again soon :)</description>
		<content:encoded><![CDATA[<p>Thanks, Glen; I now remember that I found the bug shortly after posting the code and completely forgot to update it.</p>
<p>Quite a lot going on recently, but normal service should be resumed again soon <img src='http://www.timisted.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glen Harding</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-767</link>
		<dc:creator>Glen Harding</dc:creator>
		<pubDate>Thu, 28 Jan 2010 21:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-767</guid>
		<description>Thanks for this, it saved me a huge amount of time. But I had a small problem when moving items at the beginning of the table backwards. For example: an item at the start of the list with viewPosition=0, and moving it back to position 3 - where my table has 5 items in it. 

This would cause the viewPosition sequence to skip a number - 0,1,2,4,5. This problem in turn actually stops you from dragging an item to the end of the table. In my case with 5 items, dragging the item to the end of the list in the table would only ever put it 2nd last.

The way I got around this was to make a simple change in tableView:acceptDrop

change 

tempRow = row;
to
tempRow = row - 1;

Hope this helps anybody else experiencing this little problem. 

But many thanks again for this post - can&#039;t tell you how much work it saved</description>
		<content:encoded><![CDATA[<p>Thanks for this, it saved me a huge amount of time. But I had a small problem when moving items at the beginning of the table backwards. For example: an item at the start of the list with viewPosition=0, and moving it back to position 3 &#8211; where my table has 5 items in it. </p>
<p>This would cause the viewPosition sequence to skip a number &#8211; 0,1,2,4,5. This problem in turn actually stops you from dragging an item to the end of the table. In my case with 5 items, dragging the item to the end of the list in the table would only ever put it 2nd last.</p>
<p>The way I got around this was to make a simple change in tableView:acceptDrop</p>
<p>change </p>
<p>tempRow = row;<br />
to<br />
tempRow = row &#8211; 1;</p>
<p>Hope this helps anybody else experiencing this little problem. </p>
<p>But many thanks again for this post &#8211; can&#8217;t tell you how much work it saved</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ellie</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-30</link>
		<dc:creator>Ellie</dc:creator>
		<pubDate>Mon, 07 Dec 2009 05:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-30</guid>
		<description>Thanks for the clear post! This was very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks for the clear post! This was very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Greaney</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-27</link>
		<dc:creator>Andrew Greaney</dc:creator>
		<pubDate>Sat, 29 Aug 2009 18:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-27</guid>
		<description>Being very new to Core Data, I found this tutorial very helpful.

One problem I came across was I want to use this in a non-document based Core Data Application.

Could you explain what changes need to be made?

Thanks.</description>
		<content:encoded><![CDATA[<p>Being very new to Core Data, I found this tutorial very helpful.</p>
<p>One problem I came across was I want to use this in a non-document based Core Data Application.</p>
<p>Could you explain what changes need to be made?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Strandgaard</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-25</link>
		<dc:creator>Simon Strandgaard</dc:creator>
		<pubDate>Sat, 15 Aug 2009 22:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-25</guid>
		<description>Reordering rows inside a table. It sounds like something that NSTableView can do out of the box, just by setting a value to YES somewhere, so I wasn&#039;t sure where to begin. Your article shed light on this. Thank you for writing such a verbose article.</description>
		<content:encoded><![CDATA[<p>Reordering rows inside a table. It sounds like something that NSTableView can do out of the box, just by setting a value to YES somewhere, so I wasn&#8217;t sure where to begin. Your article shed light on this. Thank you for writing such a verbose article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Knopper</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-28</link>
		<dc:creator>Mark Knopper</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-28</guid>
		<description>Thanks for posting this. It was great to find specific instructions with code on how to do drag &amp; drop for rearranging rows in a table view. I was able to use it in my app and it works fine.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. It was great to find specific instructions with code on how to do drag &amp; drop for rearranging rows in a table view. I was able to use it in my app and it works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Technoboria &#187; links for 2009-04-16</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-26</link>
		<dc:creator>Technoboria &#187; links for 2009-04-16</dc:creator>
		<pubDate>Thu, 16 Apr 2009 17:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-26</guid>
		<description>[...] Drag and Drop Rearranging in Table Views with Core Data &#124; Blog @ Tim Isted &quot;More core data fun. Trying to get a table with drag-and-drop reordering working myself, so this will help no end. There is very little information on this stuff out there.&quot; [...]</description>
		<content:encoded><![CDATA[<p>[...] Drag and Drop Rearranging in Table Views with Core Data | Blog @ Tim Isted &quot;More core data fun. Trying to get a table with drag-and-drop reordering working myself, so this will help no end. There is very little information on this stuff out there.&quot; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Sterling</title>
		<link>http://www.timisted.net/blog/archive/core-data-drag-drop/comment-page-1/#comment-29</link>
		<dc:creator>Jonathan Sterling</dc:creator>
		<pubDate>Sat, 21 Feb 2009 19:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.timisted.net/blog/?p=22#comment-29</guid>
		<description>Great guide. I don&#039;t know if it is my fault, but there is one problem. When I drag items, they don&#039;t drag to the place I tell them to. How do I solve this problem?</description>
		<content:encoded><![CDATA[<p>Great guide. I don&#8217;t know if it is my fault, but there is one problem. When I drag items, they don&#8217;t drag to the place I tell them to. How do I solve this problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
