Comparing Two Strings
<p>I am using <code>isEqualToString</code> to compare two strings? as follows:</p>

<pre><code>   if ( [ somethingString isEqualToString: @"MyString" ]   )
   { //do something } else { //do something else }
</code></pre>

<p>Now, I have examined <code>somethingString</code> with <code>NSLog</code> and it appears ok in that it shows what I expected.  But, the if statement is not working.</p>

<p>I am thinking that even though the Debugger shows the object there before the if is executed, the type or something else is amiss.</p>

<p>The somethingString comes from the <code>UIPickerView</code> which is populated with an array of objects...if this makes any difference.</p>

<p>Any thoughts?</p>

<p>ps. I have tried using the compare: and that definitely does not work.</p>
