title: date in a specific range with NSOrderedAscending and NSOrderedDescending
body: <p>I have this code:</p>
  
  <pre><code>NSComparisonResult compareStart = [firstDate compare: dateSelected]; 
  NSComparisonResult compareEnd = [secondDate compare: dateSelected];
  
  if (((compareStart == NSOrderedAscending) || (compareStart == NSOrderedSame))
                     &amp;&amp; (compareEnd == NSOrderedDescending)) 
  </code></pre>
  
  <p>but it don't entry in the "if" when firstDate = dateSelected or secondDate = dateSelected...why??</p>