Object is the
OBJC_ROOT_CLASS for ObjC 1.0,
for ObjC 2.0 use
<Foundation/Foundation.h>. You'll also have to add the
-framework Foundation as a compiler flag if you are compiling
using clang or gcc on the command line.
See the header file
#if __OBJC__ && !__OBJC2__
#if __OBJC__ && !__OBJC2__.
I actually managed to find that:
When writing code that is based upon
the Foundation framework, that root class is typically NSObject in
an old document... The
OBJC_ROOT_CLASS got me confused, so
even if you're using ObjC 1.0 it's still