• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Including Cocoa in a Carbon App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Including Cocoa in a Carbon App
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Binding label value to CoreDara int16
  • Next by Date: Re: Including Cocoa in a Carbon App
  • Previous by thread: Re: Binding label value to CoreDara int16
  • Next by thread: Re: Including Cocoa in a Carbon App
  • Index(es):
    • Date
    • Thread