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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to