Re: Cocoa, C++, Keyboard input and Timers
Re: Cocoa, C++, Keyboard input and Timers
- Subject: Re: Cocoa, C++, Keyboard input and Timers
- From: Josh de Lioncourt <email@hidden>
- Date: Mon, 16 Jun 2008 17:29:22 -0700
On Jun 16, 2008, at 3:45 PM, Andreas Monitzer wrote:
First off, Cocoa programs have to be written in Objective C.
However, when using the file extension .mm instead of .m, you can
mix Objective C and C++ in the same file (you can't subclass across
programming languages, though).
Yes, this is what I was planning on doing. To clarify and make
certain I am entirely on the same page, however, let me quickly
explain what I had planned.
I was planning on using Objective C for Cocoa specific code, such as
code to create the NSWindow, for example. Game logic would be written
in C++ for porting purposes. If my understanding is correct, that
should be perfectly possible. I'd actually be much happier writing in
C++ across the board, but if I can't create apps that use the Cocoa UI
objects in C++, I open up a whole host of other problems where regards
accessibility, something that is of paramount importance, even for the
minimal amount of GUI that the app will be employing.
Josh de Lioncourt
...my other mail provider is an owl...
_______________________________________________
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