<?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: Tutorial: Migrating Data</title>
	<atom:link href="http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/</link>
	<description>Alex Curylo, iPhone Programmer</description>
	<lastBuildDate>Wed, 10 Mar 2010 04:49:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: RickH</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2516</link>
		<dc:creator>RickH</dc:creator>
		<pubDate>Tue, 13 Oct 2009 11:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2516</guid>
		<description>Hi.  I stumbled across this thread while researching a similar problem to Ilya&#039;s, and have a bit more info.  Although my App1 created a custom named pasteboard and put a string into it without issues, and it was definitely marked persistent, App2 couldn&#039;t find that same pasteboard afterward.  More testing finally revealed the problem: App1 of course used  create:YES, but App2 was using create:NO to check for the data&#039;s existence. For whatever reason, even if the pasteboard already exists, I had to pass create:YES on the second call to successfully find it to retrieve from it. create:NO always returns nil, whether the data has been saved or not.  I know this thread is done, but maybe this will help some future Googlenaut like myself.</description>
		<content:encoded><![CDATA[<p>Hi.  I stumbled across this thread while researching a similar problem to Ilya&#8217;s, and have a bit more info.  Although my App1 created a custom named pasteboard and put a string into it without issues, and it was definitely marked persistent, App2 couldn&#8217;t find that same pasteboard afterward.  More testing finally revealed the problem: App1 of course used  create:YES, but App2 was using create:NO to check for the data&#8217;s existence. For whatever reason, even if the pasteboard already exists, I had to pass create:YES on the second call to successfully find it to retrieve from it. create:NO always returns nil, whether the data has been saved or not.  I know this thread is done, but maybe this will help some future Googlenaut like myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2397</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Sun, 20 Sep 2009 19:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2397</guid>
		<description>To answer my own question, setting the value of the type to nil does seem to remove it.</description>
		<content:encoded><![CDATA[<p>To answer my own question, setting the value of the type to nil does seem to remove it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2396</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Sun, 20 Sep 2009 19:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2396</guid>
		<description>Thanks again for your response, Alex. The #define is an Objective-C string, but maybe the system didn&#039;t like it for some other reason. I&#039;m for following your advice and using the general pasteboard, but I&#039;ve got one question. Since the general pasteboard cannot be removed, and UIPasteBoard doesn&#039;t seem to offer a method for removing objects, how do I get rid of the data I&#039;m passing after I&#039;ve retrieved it? Would setting it to nil do the trick?</description>
		<content:encoded><![CDATA[<p>Thanks again for your response, Alex. The #define is an Objective-C string, but maybe the system didn&#8217;t like it for some other reason. I&#8217;m for following your advice and using the general pasteboard, but I&#8217;ve got one question. Since the general pasteboard cannot be removed, and UIPasteBoard doesn&#8217;t seem to offer a method for removing objects, how do I get rid of the data I&#8217;m passing after I&#8217;ve retrieved it? Would setting it to nil do the trick?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2388</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 20 Sep 2009 05:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2388</guid>
		<description>I&#039;d be guessing it&#039;s your name then. Sure you #defined an Objective-C string @&quot;name&quot; and not a C string &quot;name&quot;? Usually that kind of thing crashes in short order, but sometimes it just fails silently.

Good way to check that (or if there&#039;s some other problem with your name) would be to use the -pasteboardWithUniqueName: call, get its name, mark it persistent, and see if that works.

If that doesn&#039;t produce any enlightenment I&#039;d just skip past the problem and use the general pasteboard since it works and worry about this for 1.1 if the app becomes a hit. There&#039;s no particular downside to doing that besides other applications can mess with the data, which in most circumstances probably isn&#039;t a showstopper concern.</description>
		<content:encoded><![CDATA[<p>I&#8217;d be guessing it&#8217;s your name then. Sure you #defined an Objective-C string @&#8221;name&#8221; and not a C string &#8220;name&#8221;? Usually that kind of thing crashes in short order, but sometimes it just fails silently.</p>
<p>Good way to check that (or if there&#8217;s some other problem with your name) would be to use the -pasteboardWithUniqueName: call, get its name, mark it persistent, and see if that works.</p>
<p>If that doesn&#8217;t produce any enlightenment I&#8217;d just skip past the problem and use the general pasteboard since it works and worry about this for 1.1 if the app becomes a hit. There&#8217;s no particular downside to doing that besides other applications can mess with the data, which in most circumstances probably isn&#8217;t a showstopper concern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2387</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Sun, 20 Sep 2009 05:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2387</guid>
		<description>Here is my code for creating the custom pasteboard:
	UIPasteboard *myPasteboard = [UIPasteboard pasteboardWithName:GTKPasteBoard create:YES];
	myPasteboard.persistent = YES;

GTKPasteBoard is a #define.</description>
		<content:encoded><![CDATA[<p>Here is my code for creating the custom pasteboard:<br />
	UIPasteboard *myPasteboard = [UIPasteboard pasteboardWithName:GTKPasteBoard create:YES];<br />
	myPasteboard.persistent = YES;</p>
<p>GTKPasteBoard is a #define.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2384</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Sun, 20 Sep 2009 05:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2384</guid>
		<description>Thank you for your prompt reply, Alex. 

When I use the general pasteboard the data appears to be saved and retrieved successfully. So it looks to be an issue with the custom pasteboard handling. Anything special I should do with the pasteboard beyond creating it and setting the persistent property? Also, how undesirable would it be to use the general pasteboard instead of a custom one for passing application-specific data (using a custom type) between two apps? Thanks again for your help.</description>
		<content:encoded><![CDATA[<p>Thank you for your prompt reply, Alex. </p>
<p>When I use the general pasteboard the data appears to be saved and retrieved successfully. So it looks to be an issue with the custom pasteboard handling. Anything special I should do with the pasteboard beyond creating it and setting the persistent property? Also, how undesirable would it be to use the general pasteboard instead of a custom one for passing application-specific data (using a custom type) between two apps? Thanks again for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2383</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 20 Sep 2009 04:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2383</guid>
		<description>First off I&#039;d try using the general pasteboard instead of a custom pasteboard. That&#039;ll narrow it down to either your pasteboard handling or your data handling, which is a start.</description>
		<content:encoded><![CDATA[<p>First off I&#8217;d try using the general pasteboard instead of a custom pasteboard. That&#8217;ll narrow it down to either your pasteboard handling or your data handling, which is a start.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2382</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Sun, 20 Sep 2009 03:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2382</guid>
		<description>having a problem with pasteboard persistence. i create a custom pasteboard with a unique name and set its persistent property to YES, but upon quitting and restarting the app or on quitting and launching another app the pasteboard is not found. any ideas? thanks</description>
		<content:encoded><![CDATA[<p>having a problem with pasteboard persistence. i create a custom pasteboard with a unique name and set its persistent property to YES, but upon quitting and restarting the app or on quitting and launching another app the pasteboard is not found. any ideas? thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2194</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 17 Aug 2009 19:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2194</guid>
		<description>Haven&#039;t got around to it yet -- still waiting for a final 3.1 SDK before we have something to be sending it to...</description>
		<content:encoded><![CDATA[<p>Haven&#8217;t got around to it yet &#8212; still waiting for a final 3.1 SDK before we have something to be sending it to&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael C</title>
		<link>http://www.alexcurylo.com/blog/2009/06/29/tutorial-migrating-data/comment-page-1/#comment-2193</link>
		<dc:creator>Michael C</dc:creator>
		<pubDate>Mon, 17 Aug 2009 18:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexcurylo.com/blog/?p=972#comment-2193</guid>
		<description>@Alex:

How did it work out ? Was the UIPasteboard able to handle 100 MB ?</description>
		<content:encoded><![CDATA[<p>@Alex:</p>
<p>How did it work out ? Was the UIPasteboard able to handle 100 MB ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
