Re: Obj-C header-file becoming C header-file, & NSImage problem
Re: Obj-C header-file becoming C header-file, & NSImage problem
- Subject: Re: Obj-C header-file becoming C header-file, & NSImage problem
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 19 Jul 2004 07:26:45 -0600
On Jul 19, 2004, at 2:58 AM, Oliver Donald wrote:
This structure is passed all over the place, and eventually comes back
with
intersectedObject pointing at the lucky object. This had been working
perfectly, until I added PMTypes.c (for doing the vector manipulation
stuff), and included a C function prototype in PMTypes.h. Now, the
compiler
always generates errors for the line 'id intersectedObject' in
PMTypes.h. If
I change this to 'void *intersectedObject', it compiles and I can send
messages just fine, but I need to cast the void* to id in message
sends to
avoid warnings. Its like the H file has been demoted from ObjC to C
and the
compiler doesnt understand 'id' anymore. Is there some other way around
this?
Try changing the extension of the PMTypes.c file to .m. Even if that
file doesn't contain any classes or categories, that should change the
compiler that is used...
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.