Re: ObjC from C
Re: ObjC from C
- Subject: Re: ObjC from C
- From: Marcel Weiher <email@hidden>
- Date: Thu, 13 Dec 2001 09:47:46 +0100
On Donnerstag, Dezember 13, 2001, at 07:56 Uhr, Rosyna wrote:
That's the thing, it has to start out as straight C. How can I call a
Objective C class?
What code example?
Project Builder >> File >> New Project , select "Foundation Tool"
check out the automatically generated main.m
That's how you invoke Objective-C methods from plain C functions. Not
entirely surprisingly, it is exactly the same way as invoking
Objective-C methods from other Objective-C methods.
Marcel
Ack, at 12/13/01, Erik M. Buck said:
Of course.
Implement SomeLameCFunction(char * bob) in a *.m file or use the
compiler
option to force it to use Objective-C when compiling that module.
Why would anyone doubt this ? This is exactly what Apple's own code
example
do. What else could the phrase "Super-set of ANSI C" mean ?
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.