Re: Programming Languages
Re: Programming Languages
- Subject: Re: Programming Languages
- From: Andreas Grosam <email@hidden>
- Date: Sun, 07 Apr 2013 11:23:07 +0200
When you plan to make a nice GUI application, there's nothing better than utilizing Cocoa and Objective-C.
However, as others have pointed out already, yes it is possible and you can. But you also certainly **should** when it is appropriate and when you can afford it.
There are certain problems where Cocoa's Containers and Cocoa's classes and it's method invocations and object creations are too inefficient. That means, whenever you need highly efficient code - regarding timing and memory consumption - it's oftentimes better to use to implement the heavy lifting and number crunching in C++. You can expect the result be something about 2 to 5 times faster with much less memory footprint (if you do it right).
This efficiency comes with a cost, however. Developing a more complex problem in C++ using all is template and meta programming techniques will typically take you about 10 to 100 times longer than using a simple approach using Objective-C and Cocoa.
Andreas
On 06.04.2013, at 19:51, Harmony Neil wrote:
> Hellow,
> is it possible to program mac and/or iPhone apps using the c++ programming language? I thought it was, but everything I've seen in xcode so far is mainly concentrating on objective c. Also, can I compile apps with g++ in the terminal and run the executables on my iPhone or computer to test them? It seems a lot easier than having xcode putting a tonne of code there that I didn't write in the first place.
> Thanks for any suggestions,
> Harmony.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden