title: NSObject is undefined (objective c)
body: <p>This is more then likely a very simple question but I am completely stumped by it (and more then a little embarrassed by the situation).  I have the following code in a command line utility in xCode:</p>
  
  <pre><code>#include &lt;CoreFoundation/CoreFoundation.h&gt;
  
  int main (int argc, const char * argv[]) {
  
      NSFileManager *filemgr = [NSFileManager defaultManager];
  
  }
  </code></pre>
  
  <p>When I build the project I get an error that "'NSFileManager' is undeclared".  If I add the line:</p>
  
  <pre><code>#include &lt;Foundation/Foundation.h&gt; 
  </code></pre>
  
  <p>my error count jumps from 3 to 3951 with all of the errors in the file "NSObjCRuntime.h".  I don't think there is anything wrong with the code, but do I have something in the programing environment set up wrong?</p>
  
  <p>Thanks for the help.</p>