Hi Michael, I don't doubt what you are saying, but I guess I'd have to see some sample code. I don't know enough about Objective C to write a wrapper around my existing code so would need a helper in order to port certain games etc to iOS.
It still makes me slightly cranky I can't just take a purely good C++ application and compile it with the GNU compilers rather than going through the business of writing Objective C wrappers just because Apple wants to be proprietary about what languages and tools they used. I'm impressed with the apps and things I've seen on iOS and Mac OS, but it sucks that its their way or no way. I guess my problem with it is I'm use to Linux, the open source model, where you have choice of language, tools, desktop environment, etc and there is no corperation calling all the shots on what you can and can't do where with Apple their guidelines are rather strict. Cheers! On 6/8/13, Michael Taboada <[email protected]> wrote: > Hi Thomas, > Not quite true. If you have c++ apps that are cross platform, you could > pretty easily port them to objective c using what's called objective c++. > it's basically objective c mixed with c++. Note if you decided to go this > route that to make your files usable in regular objective c files you'd have > > to make a very, very light wrapper around your c++ code, as objective c is > not compatible with c++ in and of itself, but with objective c++ it is. > For example what you might do is what's commonly known as 'pimpl' or > 'private implementation' where anywhere in the objective c header file that > > you reference a c++ class, you simply put a struct pointer to that class. > That way, as objective c is backward compatible with c, and the header files > > doesn't have to touch the c++ class code, all you have to do in the > objective c++ file is to cast the struct pointer to the class type and use > it as normal. > Hth, > -Michael. > --- Gamers mailing list __ [email protected] If you want to leave the list, send E-mail to [email protected]. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[email protected]. If you have any questions or concerns regarding the management of the list, please send E-mail to [email protected].
