• 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
compiling a lib with Cocoa code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling a lib with Cocoa code


  • Subject: compiling a lib with Cocoa code
  • From: Ken Baer <email@hidden>
  • Date: Mon, 11 Apr 2005 09:37:31 -0700

I have spent most of my Mac code development time in Carbon, and have never had to touch Cocoa until now. I am trying to build a small library that uses WebKit. I have isolated the code that uses Cocoa into it's own file and library. I have the following includes at the top of the file.

#include <Carbon/Carbon.h>
#include <Cocoa/Cocoa.h>
#include <WebKit/CarbonUtils.h>
#include <WebKit/HIWebView.h>

When I compile, I get several errors that choke on Cocoa syntax. The first one is in Foundation.h

<x-tad-smaller>/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:56: error: parse error before `@' token
</x-tad-smaller>
@class NSString;

I figure I need to change some XCode settings to make it work. Can someone clue me in?
Thanks.

-Ken Baer.
Hash, Inc.
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: compiling a lib with Cocoa code
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Dependency analysis warnings and pre-compiled headers
  • Next by Date: Re: compiling a lib with Cocoa code
  • Previous by thread: Re: Dependency analysis warnings and pre-compiled headers
  • Next by thread: Re: compiling a lib with Cocoa code
  • Index(es):
    • Date
    • Thread