On Sep 21, 2005, at 5:58 PM, Dave McCaldon wrote:
I thought Steve Jobs said it would be easy :-)
Try this:
* In Xcode, right click on the .mm filename in the project outline view
* Choose Preprocess
Now, take a look at what is at the beginning of the preprocessor output, it might help you identify what the problem is.
Wow, that is a lot of stuff that appears there. At any rate, I can't tell that anything goes wrong. Here is the section of text in the preprocess immediately before the @class NSString that it gives an error. It basically runs through a lot of header files specified by Cocoa.h. When I do the preprocess, it doesn't report any errors, is that the way it is supposed to work?
Thanks for any more advice,
Bob
extern "C" void objc_collect_if_needed(unsigned long options);
extern "C" unsigned int objc_numberAllocated(void);
extern "C" BOOL objc_collecting_enabled(void);
extern "C" id objc_allocate_object(Class cls, int extra);
extern "C" id objc_assign_strongCast(id val, id *dest);
extern "C" id objc_assign_global(id val, id *dest);
extern "C" id objc_assign_ivar(id value, id dest, unsigned int offset);
extern "C" void *objc_memmove_collectable(void *dst, const void *src, size_t size);
extern "C" BOOL objc_is_finalized(void *ptr);
# 11 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 2 3
# 1 "/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h" 1 3
# 46 "/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h" 3
extern "C" double NSFoundationVersionNumber;
# 56 "/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h" 3
@class NSString;