compiling a lib with Cocoa code
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