title: Xcode couldn't find NSObject's method - Objective C
body: <p>I got into a weird situation, I am trying different methods of NSObject just to know how it works. I am currently testing them on a simple view based application on iOS. I created a random object greater which returns objects in id as basic NSObject, Than I want to determine what object it is by getting their class name. Therefore I used below method...</p>
  
  <p><strong>Link Edited</strong></p>
  
  <p><a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/className" rel="nofollow">http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/className</a></p>
  
  <p>Now when I call this method on my random object, Like...</p>
  
  <pre><code>[object className];
  </code></pre>
  
  <p>Xcode gives me an error saying this...</p>
  
  <blockquote>
    <p>Instance method '-className' not found</p>
  </blockquote>
  
  <p>Is this method deprecated? Or Am I doing something wrong?</p>
  
  <p>Thanks</p>