Re: When adding Cocoa classes I get a lot of compile errors automatically
Re: When adding Cocoa classes I get a lot of compile errors automatically
- Subject: Re: When adding Cocoa classes I get a lot of compile errors automatically
- From: "Jason T. Slack-Moehrle" <email@hidden>
- Date: Mon, 03 Jan 2011 14:00:44 -0800
>
>> I do have the Cocoa framework added and in my pch I am using
>>
>> #ifdef __OBJC__
>> #import <Cocoa/Cocoa.h>
>> #endif
>
> Well, that would have been my first guess. Second guess, does your Objective-C source file name end with the .m extension? (Or .mm if you are using C++ code from within it?) Third guess, are any C++ include files in your pch wrapped in #ifdef __cplusplus?
I looked through a sample by Apple on Carbon and Cocoa and I seem to have set this up the same way, theirs works, mine doesn't.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden