• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Obj-C header-file becoming C header-file, & NSImage problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Obj-C header-file becoming C header-file, & NSImage problem (From: Oliver Donald <email@hidden>)

  • Prev by Date: Efficient interactive address book searches
  • Next by Date: Re: KVC-compliance using -respondsToSelector:
  • Previous by thread: Obj-C header-file becoming C header-file, & NSImage problem
  • Next by thread: Re: Obj-C header-file becoming C header-file, & NSImage problem
  • Index(es):
    • Date
    • Thread