• 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: programming in C++ ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programming in C++ ?


  • Subject: Re: programming in C++ ?
  • From: John Stiles <email@hidden>
  • Date: Wed, 30 Jan 2008 07:22:33 -0800

You can use .mm for all your stuff and it will be fine. That's what I do.
The only reasons that people use .m are:
- somewhat faster compile times, since the C++ compiler is slower than the C compiler
- the same reason people use .c files; they don't want C++ features or their code predates widespread C++ adoption



On Jan 30, 2008, at 3:17 PM, Cor wrote:

I'm very new to Cocoa, so I'm sorry if this is more or less a stupid question.

I want to make an application that uses the QTKit and some IOKit things.
For QTKit I seem te need to write in Objective-C.
For the IOKit I need to write in C++.


I'm a experienced C++ programmer, so I prefer to program in C++, but how do I interface to QTKit?

I did read something about .mm files.
If I understand correctly then .mm files may contain Object-C and C+ + mix.
But if this is so, why are not all files .mm (why are .m files needed?).


And how do I call the Object-C functions?

Does it hurt when I only use .mm files?
Does it makes sense to write Cocoa applications in C++?

Thanks.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >programming in C++ ? (From: "Cor" <email@hidden>)

  • Prev by Date: programming in C++ ?
  • Next by Date: Re: reset alternating row background color
  • Previous by thread: programming in C++ ?
  • Next by thread: Re: programming in C++ ?
  • Index(es):
    • Date
    • Thread