<?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: iPhone Tutorial &#8211; UISearchDisplayController with NSPredicate</title>
	<atom:link href="http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/</link>
	<description>iPhone, iPad, Windows Development and Usability Guidelines</description>
	<lastBuildDate>Fri, 30 Jul 2010 05:20:21 +0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: olof</title>
		<link>http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/comment-page-1/#comment-1036</link>
		<dc:creator>olof</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mugunthkumar.com/?p=549#comment-1036</guid>
		<description>I dont understand the line: 
 
[product.productID compare:searchText options:NSCaseInsensitiveSearch]; 
 
What does that line do? </description>
		<content:encoded><![CDATA[<p>I dont understand the line: </p>
<p>[product.productID compare:searchText options:NSCaseInsensitiveSearch]; </p>
<p>What does that line do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Saggau</title>
		<link>http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/comment-page-1/#comment-940</link>
		<dc:creator>Jonathan Saggau</dc:creator>
		<pubDate>Sat, 13 Feb 2010 00:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mugunthkumar.com/?p=549#comment-940</guid>
		<description>There are a few little details that would make this better. 
Look at -[NSArray filteredArrayUsingPredicate:(NSPredicate *)predicate] and you won&#039;t need that loop.  In any case, there is no need to make a new predicate identical to the last one each time through that loop.  You should probably put it outside of the loop. 
 
I also suggest that you consider modifying the predicate you are filtering with, rather than filtering using the if([scope isEqualToString...] bits.  For example: 
 
if([scope isEqualToString:@&quot;Product ID&quot;]) { 
    predicate = [NSPredicate predicateWithFormat:@&quot;(SELF.productID contains[cd] %@)&quot;, searchText]; 
} 
 
then the filtered array is just: 
 
[tableData filteredArrayUsingPredicate:predicate] 
 
so you won&#039;t need a loop. 
 
You can even drop an AND or an OR into your predicate or just use NSCompoundPredicate&#039;s various class methods to make your filter more dynamic. 
 
See Apple&#039;s Predicate Programming Guide for more details </description>
		<content:encoded><![CDATA[<p>There are a few little details that would make this better.<br />
Look at -[NSArray filteredArrayUsingPredicate:(NSPredicate *)predicate] and you won&#039;t need that loop.  In any case, there is no need to make a new predicate identical to the last one each time through that loop.  You should probably put it outside of the loop. </p>
<p>I also suggest that you consider modifying the predicate you are filtering with, rather than filtering using the if([scope isEqualToString...] bits.  For example: </p>
<p>if([scope isEqualToString:@&quot;Product ID&quot;]) {<br />
    predicate = [NSPredicate predicateWithFormat:@&quot;(SELF.productID contains[cd] %@)&quot;, searchText];<br />
} </p>
<p>then the filtered array is just: </p>
<p>[tableData filteredArrayUsingPredicate:predicate] </p>
<p>so you won&#039;t need a loop. </p>
<p>You can even drop an AND or an OR into your predicate or just use NSCompoundPredicate&#039;s various class methods to make your filter more dynamic. </p>
<p>See Apple&#039;s Predicate Programming Guide for more details</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mugunthkumar</title>
		<link>http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/comment-page-1/#comment-477</link>
		<dc:creator>mugunthkumar</dc:creator>
		<pubDate>Tue, 17 Nov 2009 09:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mugunthkumar.com/?p=549#comment-477</guid>
		<description>try it now... I&#039;m sorry.  </description>
		<content:encoded><![CDATA[<p>try it now&#8230; I&#039;m sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://blog.mugunthkumar.com/coding/iphone-tutorial-uisearchdisplaycontroller-with-nspredicate/comment-page-1/#comment-461</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Mon, 16 Nov 2009 14:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mugunthkumar.com/?p=549#comment-461</guid>
		<description>There are 8 ads in that short block of code :( </description>
		<content:encoded><![CDATA[<p>There are 8 ads in that short block of code <img src='http://blog.mugunthkumar.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
