• 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
Re: adding Foundation framework to a Carbon application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding Foundation framework to a Carbon application


  • Subject: Re: adding Foundation framework to a Carbon application
  • From: Daniel Jalkut <email@hidden>
  • Date: Sat, 19 Nov 2005 01:30:34 -0500

Hi Donald - you need to make sure that any source file that includes the Obj-C headers are in fact being compiled with Obj-C enabled in the compiler. I think you can accomplish this either by manually changing the "file type" of a source file in its inspector, or you can change it for the whole project by adding "-ObjC" (I think) as an "additional compiler flag".

Daniel

On Nov 19, 2005, at 1:26 AM, Donald Hall wrote:

I have a small carbon application that I had working fine. I wanted to add some code that uses Foundation classes (NSAppleScript and NSString), so added the Foundation framework to my project. Upon compiling all hell broke loose - over 1500 errors, all related to the '#import <Foundation/Foundation.h>' statement.

Here is a typical error message:

error: syntax error at '@' token

They all seem to have to do with the fact that Foundation is Obj-C.

I have several Foundation apps that include Carbon without problems.

Is there something special I have to do to the project to get it to work?

Thanks,

Don
-- Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: adding Foundation framework to a Carbon application
      • From: Chris Parker <email@hidden>
References: 
 >adding Foundation framework to a Carbon application (From: Donald Hall <email@hidden>)

  • Prev by Date: adding Foundation framework to a Carbon application
  • Next by Date: Re: URL loading system not threadsafe?
  • Previous by thread: adding Foundation framework to a Carbon application
  • Next by thread: Re: adding Foundation framework to a Carbon application
  • Index(es):
    • Date
    • Thread