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 S-M <email@hidden>
- Date: Tue, 4 Jan 2011 08:21:26 -0800
>>
>> 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 say the class is empty, do you include any headers?
.h:
#import <Cocoa/Cocoa.h>
@interface FxCocoa : NSObject {
}
@end
.mm:
#import "FxCocoa.h"
@implementation FxCocoa
@end
Since this is a carbon project originally do I need to change any target settings, header paths to make this work? I just added the class, added Cocoa Framework and put cocoa.h in my .pch.
-Jason_______________________________________________
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