<?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: Highly useful Objective-C code</title>
	<atom:link href="http://www.dosomethinghere.com/2010/07/29/highly-useful-objective-c-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dosomethinghere.com/2010/07/29/highly-useful-objective-c-code/</link>
	<description>Turning impossibilities into 1s and 0s professionally since 0&#120;07C1</description>
	<lastBuildDate>Fri, 20 Jan 2012 20:09:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: John Boker</title>
		<link>http://www.dosomethinghere.com/2010/07/29/highly-useful-objective-c-code/comment-page-1/#comment-461</link>
		<dc:creator>John Boker</dc:creator>
		<pubDate>Sat, 14 Aug 2010 17:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=575#comment-461</guid>
		<description>I think there may be some error in your logic, below is the corrected code.

#define HELLS_NO !VERY_YES

if ([userName isEqualToString:@&quot;BP&quot;])
{
    // by definition !VERY_YES == HELLS_NO
    [coolnessSwitch setOn:!VERY_YES];
}</description>
		<content:encoded><![CDATA[<p>I think there may be some error in your logic, below is the corrected code.</p>
<p>#define HELLS_NO !VERY_YES</p>
<p>if ([userName isEqualToString:@"BP"])<br />
{<br />
    // by definition !VERY_YES == HELLS_NO<br />
    [coolnessSwitch setOn:!VERY_YES];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BP</title>
		<link>http://www.dosomethinghere.com/2010/07/29/highly-useful-objective-c-code/comment-page-1/#comment-436</link>
		<dc:creator>BP</dc:creator>
		<pubDate>Thu, 29 Jul 2010 16:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=575#comment-436</guid>
		<description>Sure, let&#039;s say you had an application with a preferences dialog, and on the preferences dialog there was a UISwitch (with corresponding IBOutlet) with a label next to it that said &quot;I am cool&quot;, you might have code in your viewDidLoad that looks like this:

if ([userName isEqualToString:@&quot;BP&quot;])
{
    &#160;&#160;&#160;&#160;[coolnessSwitch setOn:VERY_YES];
}

You&#039;re welcome.</description>
		<content:encoded><![CDATA[<p>Sure, let&#8217;s say you had an application with a preferences dialog, and on the preferences dialog there was a UISwitch (with corresponding IBOutlet) with a label next to it that said &#8220;I am cool&#8221;, you might have code in your viewDidLoad that looks like this:</p>
<p>if ([userName isEqualToString:@"BP"])<br />
{<br />
    &nbsp;&nbsp;&nbsp;&nbsp;[coolnessSwitch setOn:VERY_YES];<br />
}</p>
<p>You&#8217;re welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Boker</title>
		<link>http://www.dosomethinghere.com/2010/07/29/highly-useful-objective-c-code/comment-page-1/#comment-435</link>
		<dc:creator>John Boker</dc:creator>
		<pubDate>Thu, 29 Jul 2010 15:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=575#comment-435</guid>
		<description>I&#039;m not sure about this, could I see some example usages?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure about this, could I see some example usages?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

