Including Cocoa in a Carbon App
Including Cocoa in a Carbon App
- Subject: Including Cocoa in a Carbon App
- From: "Jason T. Slack-Moehrle" <email@hidden>
- Date: Wed, 29 Dec 2010 14:24:34 -0800
Hello All,
I have a carbon app that I need to put some cocoa functionality in. I am reading some resources on the ADC site.
In my .pch I am adding:
#ifdef __APPLE__ & __MACH__
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#endif
I have added the Cocoa and Foundation frameworks to my project, but when I compile my .pch I get about 9761 errors right off the bat.
I am obviously missing something key. What is it?
My Base SDK is 10.4 building a universal binary, using GCC 4.2.
-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