I've found references online that talk about two different root classes for ObjC, either objc/Object.h
or Foundation/NSObject.h
. They require different compiler flags (-lobj
vs. -lobjc -framework Foundation
, and have different selectors for initializing & releasing objects. Is NSObject a replacement, or do they have different applications? Obviously NSObject.h
would be better for NextStep-type stuff, but does Object.h
have advantages that would make it better in certain situations?
FWIW, the updated FAQ from comp.lang.objective-c seems to indicate the NSObject.h
is correct; an older version mentions Object.h