• 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: 'class' in .h file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'class' in .h file


  • Subject: Re: 'class' in .h file
  • From: OL&L Dev 2 <email@hidden>
  • Date: Sat, 22 Nov 2003 11:52:26 -0800

A.mm for a header file?

This will also break the compile on older versions of CodeWarrior as it maps .h to both C and C++ files and I need to leave it that was so that I can compile it with CodeWarrior's C++ compiler also. This is a .h file that I need to be able to compile on Classic, Carbon, and Cocoa. Why can't the Obj-C compiler handle 'class' in a .h file?

-m
========================

t 2:34 AM -0800 11/22/03, Troy Dawson wrote:
Is there something I need to do to allow Cocoa apps or the Obj-C compiler to allow 'class' declarations in my .h files?

enable objective-C++ compilation by either changing the extension to .mm or explicitly setting the filetype to objcpp in the property inspector for the .m file.

this latter may not be available in xcode 1.0...
_______________________________________________
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.

  • Follow-Ups:
    • Re: 'class' in .h file
      • From: Clark Cox <email@hidden>
    • Re: 'class' in .h file
      • From: Prachi Gauriar <email@hidden>
References: 
 >'class' in .h file (From: OL&L Dev 2 <email@hidden>)
 >Re: 'class' in .h file (From: Troy Dawson <email@hidden>)

  • Prev by Date: Re: [SOLVED] Re: NSTextField responder chain question...
  • Next by Date: Re: 'class' in .h file
  • Previous by thread: Re: 'class' in .h file
  • Next by thread: Re: 'class' in .h file
  • Index(es):
    • Date
    • Thread