<?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: Filtering Fun with Predicates</title>
	<atom:link href="http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/</link>
	<description>Our DNA is written in Objective-C</description>
	<lastBuildDate>Mon, 14 May 2012 19:43:35 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Dave K</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-4156</link>
		<dc:creator>Dave K</dc:creator>
		<pubDate>Thu, 12 Jan 2012 23:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-4156</guid>
		<description>helloooooo? anybody have a good answer for me?</description>
		<content:encoded><![CDATA[<p>helloooooo? anybody have a good answer for me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave K</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-4146</link>
		<dc:creator>Dave K</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-4146</guid>
		<description>ok heh, let me rephrase that...

what would the code look like to result in an array programWithVariableValues, for example, consisting of @”-60″,@”12.6″,@”100″,@”.3″,nil?</description>
		<content:encoded><![CDATA[<p>ok heh, let me rephrase that&#8230;</p>
<p>what would the code look like to result in an array programWithVariableValues, for example, consisting of @”-60″,@”12.6″,@”100″,@”.3″,nil?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drops</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-4145</link>
		<dc:creator>Drops</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-4145</guid>
		<description>Not by itself, because a predicate evaluates to true or false.</description>
		<content:encoded><![CDATA[<p>Not by itself, because a predicate evaluates to true or false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave K</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-4144</link>
		<dc:creator>Dave K</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-4144</guid>
		<description>hey.. this is nice and concise... i&#039;m curious though... can NSPredicates be used to replace objects in an array with values from a dictionary?

//so for example if i had an NSDictionary like this:

NSMutableDictionary *valuesDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                    [NSNumber numberWithDouble:-60.0],@&quot;a&quot;,
                                    [NSNumber numberWithDouble:0.0],@&quot;b&quot;,
                                    [NSNumber numberWithDouble:-12.0],@&quot;c&quot;,
                                    [NSNumber numberWithDouble:.3],@&quot;x&quot;, nil];  
//and an array like this:

NSArray *program = [NSArray arrayWithObjects: @&quot;a&quot;,@&quot;12.6&quot;,@&quot;100&quot;,@&quot;x&quot;,nil];

//is there a nice way with NSPredicate to make a new array that would end up like this?

//@&quot;-60&quot;,@&quot;12.6&quot;,@&quot;100&quot;,@&quot;.3&quot;,nil

//replacing any variables found in the array with their valueforkey&#039;s?

-Dave</description>
		<content:encoded><![CDATA[<p>hey.. this is nice and concise&#8230; i&#8217;m curious though&#8230; can NSPredicates be used to replace objects in an array with values from a dictionary?</p>
<p>//so for example if i had an NSDictionary like this:</p>
<p>NSMutableDictionary *valuesDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:<br />
                                    [NSNumber numberWithDouble:-60.0],@&#8221;a&#8221;,<br />
                                    [NSNumber numberWithDouble:0.0],@&#8221;b&#8221;,<br />
                                    [NSNumber numberWithDouble:-12.0],@&#8221;c&#8221;,<br />
                                    [NSNumber numberWithDouble:.3],@&#8221;x&#8221;, nil];<br />
//and an array like this:</p>
<p>NSArray *program = [NSArray arrayWithObjects: @"a",@"12.6",@"100",@"x",nil];</p>
<p>//is there a nice way with NSPredicate to make a new array that would end up like this?</p>
<p>//@&#8221;-60&#8243;,@&#8221;12.6&#8243;,@&#8221;100&#8243;,@&#8221;.3&#8243;,nil</p>
<p>//replacing any variables found in the array with their valueforkey&#8217;s?</p>
<p>-Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rinopazzo</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-4142</link>
		<dc:creator>rinopazzo</dc:creator>
		<pubDate>Tue, 10 Jan 2012 12:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-4142</guid>
		<description>[self setSearchDisplayController:searchDisplayController];

It is a private API, I use this code and my app was rejected!!!</description>
		<content:encoded><![CDATA[<p>[self setSearchDisplayController:searchDisplayController];</p>
<p>It is a private API, I use this code and my app was rejected!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stanislav Y</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-3969</link>
		<dc:creator>Stanislav Y</dc:creator>
		<pubDate>Thu, 15 Dec 2011 22:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-3969</guid>
		<description>Just compare it to NOT &quot;&quot;</description>
		<content:encoded><![CDATA[<p>Just compare it to NOT &#8220;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Midhun</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-3822</link>
		<dc:creator>Midhun</dc:creator>
		<pubDate>Thu, 17 Nov 2011 10:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-3822</guid>
		<description>Thanks, good one .....</description>
		<content:encoded><![CDATA[<p>Thanks, good one &#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrburns05</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-3814</link>
		<dc:creator>mrburns05</dc:creator>
		<pubDate>Mon, 14 Nov 2011 23:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-3814</guid>
		<description>How would i check the length of a string in a predicate? is this possible i want to filter the results to contain only &quot;Event&quot;s who&#039;s ([description length] &gt; 0 )

Please help if you can</description>
		<content:encoded><![CDATA[<p>How would i check the length of a string in a predicate? is this possible i want to filter the results to contain only &#8220;Event&#8221;s who&#8217;s ([description length] &gt; 0 )</p>
<p>Please help if you can</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noureddine Zaatari</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-3175</link>
		<dc:creator>Noureddine Zaatari</dc:creator>
		<pubDate>Sat, 08 Oct 2011 08:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-3175</guid>
		<description>Thank you for the great tutorial, i really appreciate it..</description>
		<content:encoded><![CDATA[<p>Thank you for the great tutorial, i really appreciate it..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mrburns05</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-2914</link>
		<dc:creator>Mrburns05</dc:creator>
		<pubDate>Fri, 12 Aug 2011 19:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-2914</guid>
		<description>Like that last guy, just wanted to post a thanks! Ive still new to core data and got on google wondering if it was possible to use multiple predicates. This was the first site my search pull sand was exactly what i was looking for!</description>
		<content:encoded><![CDATA[<p>Like that last guy, just wanted to post a thanks! Ive still new to core data and got on google wondering if it was possible to use multiple predicates. This was the first site my search pull sand was exactly what i was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Lee</title>
		<link>http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/#comment-2695</link>
		<dc:creator>Dave Lee</dc:creator>
		<pubDate>Sun, 03 Jul 2011 06:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2264#comment-2695</guid>
		<description>Just wanted to say thanks for taking the time to post this example.  Was very helpful to me in trying to learn Core Data for iOS.

Dave</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for taking the time to post this example.  Was very helpful to me in trying to learn Core Data for iOS.</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>

