<?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: Queued Background Tasks for Cocoa</title>
	<atom:link href="http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Thu, 11 Mar 2010 19:33:28 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fredrik Olsson</title>
		<link>http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/comment-page-1/#comment-15349</link>
		<dc:creator>Fredrik Olsson</dc:creator>
		<pubDate>Mon, 09 Nov 2009 15:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1665#comment-15349</guid>
		<description>The reason is that all methods in UIKit should be called on the main thread. So updating the UI directly from the background task is not a good thing, sometimes it works, sometimes you crash, and sometimes just nothing happens. This is why the Apple documentation says you must always call fromt he main thread.

Try to use performSelectorOnMainThread:withObject:waitUntilDone:.</description>
		<content:encoded><![CDATA[<p>The reason is that all methods in UIKit should be called on the main thread. So updating the UI directly from the background task is not a good thing, sometimes it works, sometimes you crash, and sometimes just nothing happens. This is why the Apple documentation says you must always call fromt he main thread.</p>
<p>Try to use performSelectorOnMainThread:withObject:waitUntilDone:.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/comment-page-1/#comment-15142</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 04 Nov 2009 17:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1665#comment-15142</guid>
		<description>I&#039;m getting the following error when using:  

[self performSelectorInBackgroundQueue:@selector(methodName:) withObject:nil];


bool _WebTryThreadLock(bool), 0x487aa0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error when using:  </p>
<p>[self performSelectorInBackgroundQueue:@selector(methodName:) withObject:nil];</p>
<p>bool _WebTryThreadLock(bool), 0&#215;487aa0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Love</title>
		<link>http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/comment-page-1/#comment-8384</link>
		<dc:creator>Marc Love</dc:creator>
		<pubDate>Sat, 18 Jul 2009 04:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1665#comment-8384</guid>
		<description>Thanks Fredrik, this is an excellent resource...especially for those of us just getting started with iPhone development and unfamiliar with such resource-constrained environments.

This should be really helpful for an app I&#039;m working on that makes heavy use of some web services.</description>
		<content:encoded><![CDATA[<p>Thanks Fredrik, this is an excellent resource&#8230;especially for those of us just getting started with iPhone development and unfamiliar with such resource-constrained environments.</p>
<p>This should be really helpful for an app I&#8217;m working on that makes heavy use of some web services.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
