title: Why is my comparing if statement not working?
body: <p>Why is the following code (in cocoa) not working?</p>
  
  <pre><code>NSString *extension = [fileName pathExtension];
  NSString *wantedExtension = @"mp3";
  if(extension == wantedExtension){
  //work
  }
  </code></pre>
  
  <p>in Xcode this just runs without warnings or errors but doesn't do what I think it SHOULD do.</p>