<?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: Sleep, Pause or Block a Thread</title>
	<atom:link href="http://iPhoneDeveloperTips.com/core-services/sleep-pause-or-block-a-thread.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/core-services/sleep-pause-or-block-a-thread.html</link>
	<description>Tips and Tricks for iPhone developers</description>
	<lastBuildDate>Thu, 29 Jul 2010 23:00:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Michelle</title>
		<link>http://iPhoneDeveloperTips.com/core-services/sleep-pause-or-block-a-thread.html/comment-page-1#comment-9446</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Mon, 08 Feb 2010 14:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5431#comment-9446</guid>
		<description>Sure, that makes sense, so long as you don&#039;t mind blocking the entire thread.  BTW, do you generally use a separate thread for audio?  I have a pending audio-based iPhone app and I&#039;ve been planning a separate thread for each channel, but I&#039;m not sure that&#039;s the best architecture for the iPhone.</description>
		<content:encoded><![CDATA[<p>Sure, that makes sense, so long as you don&#8217;t mind blocking the entire thread.  BTW, do you generally use a separate thread for audio?  I have a pending audio-based iPhone app and I&#8217;ve been planning a separate thread for each channel, but I&#8217;m not sure that&#8217;s the best architecture for the iPhone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/core-services/sleep-pause-or-block-a-thread.html/comment-page-1#comment-9445</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Mon, 08 Feb 2010 14:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5431#comment-9445</guid>
		<description>Hi Michelle,

I think it depends on the context of what you need accomplish - for a simple loop like that shown below, using NSThread seems a reasonable approach:

for (...)
{
  player.volume += .1;
  [NSThread sleepForTimeInterval:.25];
}</description>
		<content:encoded><![CDATA[<p>Hi Michelle,</p>
<p>I think it depends on the context of what you need accomplish &#8211; for a simple loop like that shown below, using NSThread seems a reasonable approach:</p>
<p>for (&#8230;)<br />
{<br />
  player.volume += .1;<br />
  [NSThread sleepForTimeInterval:.25];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://iPhoneDeveloperTips.com/core-services/sleep-pause-or-block-a-thread.html/comment-page-1#comment-9444</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Mon, 08 Feb 2010 14:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5431#comment-9444</guid>
		<description>What about using using performSelector:withObject:afterDelay: ?  Wouldn&#039;t that be simpler?</description>
		<content:encoded><![CDATA[<p>What about using using performSelector:withObject:afterDelay: ?  Wouldn&#8217;t that be simpler?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
