Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-04 Thread Jason S-M
>> >> If I try and just compile the .mm that is where the errors come from >> referencing NSObjCRuntime.h and they are like: > > Sure looks like it's including Cocoa headers in a non Objective-C file. But > that doesn't fit with your description of what you're doing, so I don't know. > > You s

[Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Jason S-M
For the archives: The answer was choosing File-Type of Objective-C++ since I had a mixture of CPP and MM files. I did this in the build target settings. Thanks Jean-Daniel from the Carbon mailing list for shedding some light to the problem. On Jan 4, 2011, at 6:53 AM, Scott Ribe wrote: > On J

Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Jason S-M
>> The answer was choosing File-Type of Objective-C++ since I had a mixture of >> CPP and MM files. > > You shouldn't *need* to do that. Something was (and still is) wrong with your > setup beyond what you described, or your description was mistaken somewhere > along the line. OK, Any idea ho