Re: ObjC from C
Re: ObjC from C
- Subject: Re: ObjC from C
- From: Charles Srstka <email@hidden>
- Date: Thu, 13 Dec 2001 02:23:14 -0600
Really, he's telling the truth. Rename the .c file so it ends with .m.
Import the headers for the class you want to call the methods from. This
should work.
On Thursday, December 13, 2001, at 12: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?
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 ?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.