Re: ObjC from C
Re: ObjC from C
- Subject: Re: ObjC from C
- From: email@hidden
- Date: Thu, 13 Dec 2001 15:32:42 -0500
On Thursday, December 13, 2001, at 01:56 AM, 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?
Not sure what you mean by "start out as". I started a tool
in PB, and it gave me .m and .h files, but when I first was writing I
just
was writing straight C. So if starting in PB, you just pretend it's ObjC
but write your plain C. If you're bringing in outside files, I think you
just import Foundation/Foundation.h in the .h and it's OK. You
add your ObjC stuff from there (and rename .c -> .m).
ch