<?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>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: MGC</title>
		<link>http://blog.jayway.com/2009/05/09/queued-background-tasks-for-cocoa/comment-page-1/#comment-72339</link>
		<dc:creator>MGC</dc:creator>
		<pubDate>Sat, 18 Dec 2010 19:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1665#comment-72339</guid>
		<description>Great example. It looks like what I need.

So how do I integrate this into my project code?
I included the files into my project, but how do I call it from my view controller? 

Do I #import on every View Controller where I want to use this? If I do that will it all be the same queue?

Essentially I want to use this to line up all of my methods in order no matter where I call them in my project. But they will sequentially execute based upon the order they were invoked.

Right now it looks like I need to include this file in every view controller, but I am not sure if that is the right thing to do.</description>
		<content:encoded><![CDATA[<p>Great example. It looks like what I need.</p>
<p>So how do I integrate this into my project code?<br />
I included the files into my project, but how do I call it from my view controller? </p>
<p>Do I #import on every View Controller where I want to use this? If I do that will it all be the same queue?</p>
<p>Essentially I want to use this to line up all of my methods in order no matter where I call them in my project. But they will sequentially execute based upon the order they were invoked.</p>
<p>Right now it looks like I need to include this file in every view controller, but I am not sure if that is the right thing to do.</p>
]]></content:encoded>
	</item>
	<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), 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&#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>

