Is there a way to use C++ for iPhone development?












0















Sorry if this is mentioned somewhere, couldn't find any info about it. Post a comment if you find a duplicate.



This is not about whether it's possible at all to compile a C++ program for the iPhone (which I suppose is possible).



Basically the question is, can you bridge between Objective C and C++?, and if it is possible, would it be feasible to wrap the entire Cocoa Touch API for iPhone with a nice C++ library?



I know nothing about Objective C, and I would really like the idea of bringing my current skills in C++ to the iPhone.



EDIT: Very similar question here










share|improve this question

























  • exact dupe stackoverflow.com/questions/270455/…

    – TheSoftwareJedi
    May 16 '09 at 12:04
















0















Sorry if this is mentioned somewhere, couldn't find any info about it. Post a comment if you find a duplicate.



This is not about whether it's possible at all to compile a C++ program for the iPhone (which I suppose is possible).



Basically the question is, can you bridge between Objective C and C++?, and if it is possible, would it be feasible to wrap the entire Cocoa Touch API for iPhone with a nice C++ library?



I know nothing about Objective C, and I would really like the idea of bringing my current skills in C++ to the iPhone.



EDIT: Very similar question here










share|improve this question

























  • exact dupe stackoverflow.com/questions/270455/…

    – TheSoftwareJedi
    May 16 '09 at 12:04














0












0








0








Sorry if this is mentioned somewhere, couldn't find any info about it. Post a comment if you find a duplicate.



This is not about whether it's possible at all to compile a C++ program for the iPhone (which I suppose is possible).



Basically the question is, can you bridge between Objective C and C++?, and if it is possible, would it be feasible to wrap the entire Cocoa Touch API for iPhone with a nice C++ library?



I know nothing about Objective C, and I would really like the idea of bringing my current skills in C++ to the iPhone.



EDIT: Very similar question here










share|improve this question
















Sorry if this is mentioned somewhere, couldn't find any info about it. Post a comment if you find a duplicate.



This is not about whether it's possible at all to compile a C++ program for the iPhone (which I suppose is possible).



Basically the question is, can you bridge between Objective C and C++?, and if it is possible, would it be feasible to wrap the entire Cocoa Touch API for iPhone with a nice C++ library?



I know nothing about Objective C, and I would really like the idea of bringing my current skills in C++ to the iPhone.



EDIT: Very similar question here







c++ iphone objective-c wrapper






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:12









Community

11




11










asked May 15 '09 at 7:48









sharkinsharkin

7,0681879115




7,0681879115













  • exact dupe stackoverflow.com/questions/270455/…

    – TheSoftwareJedi
    May 16 '09 at 12:04



















  • exact dupe stackoverflow.com/questions/270455/…

    – TheSoftwareJedi
    May 16 '09 at 12:04

















exact dupe stackoverflow.com/questions/270455/…

– TheSoftwareJedi
May 16 '09 at 12:04





exact dupe stackoverflow.com/questions/270455/…

– TheSoftwareJedi
May 16 '09 at 12:04












1 Answer
1






active

oldest

votes


















0














This question is very close to duplicating your own.



However, I would suggest spending a little more time with Objective-C. I had done C++ development myself before learning Objective-C, and it was a pretty smooth transition. Many of the core concepts are the same, and all of your base C skills will translate across. I think that once you get a little ways into it, you'll find that direct Objective-C interaction with the Cocoa frameworks is really the way to go on the Mac and iPhone. There are many great resources for getting started, like the ones I list here.



Admittedly, there are some cases where it's preferred to have a cross-platform C++ engine behind the scenes, and an Objective-C / Cocoa UI.






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f867450%2fis-there-a-way-to-use-c-for-iphone-development%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This question is very close to duplicating your own.



    However, I would suggest spending a little more time with Objective-C. I had done C++ development myself before learning Objective-C, and it was a pretty smooth transition. Many of the core concepts are the same, and all of your base C skills will translate across. I think that once you get a little ways into it, you'll find that direct Objective-C interaction with the Cocoa frameworks is really the way to go on the Mac and iPhone. There are many great resources for getting started, like the ones I list here.



    Admittedly, there are some cases where it's preferred to have a cross-platform C++ engine behind the scenes, and an Objective-C / Cocoa UI.






    share|improve this answer






























      0














      This question is very close to duplicating your own.



      However, I would suggest spending a little more time with Objective-C. I had done C++ development myself before learning Objective-C, and it was a pretty smooth transition. Many of the core concepts are the same, and all of your base C skills will translate across. I think that once you get a little ways into it, you'll find that direct Objective-C interaction with the Cocoa frameworks is really the way to go on the Mac and iPhone. There are many great resources for getting started, like the ones I list here.



      Admittedly, there are some cases where it's preferred to have a cross-platform C++ engine behind the scenes, and an Objective-C / Cocoa UI.






      share|improve this answer




























        0












        0








        0







        This question is very close to duplicating your own.



        However, I would suggest spending a little more time with Objective-C. I had done C++ development myself before learning Objective-C, and it was a pretty smooth transition. Many of the core concepts are the same, and all of your base C skills will translate across. I think that once you get a little ways into it, you'll find that direct Objective-C interaction with the Cocoa frameworks is really the way to go on the Mac and iPhone. There are many great resources for getting started, like the ones I list here.



        Admittedly, there are some cases where it's preferred to have a cross-platform C++ engine behind the scenes, and an Objective-C / Cocoa UI.






        share|improve this answer















        This question is very close to duplicating your own.



        However, I would suggest spending a little more time with Objective-C. I had done C++ development myself before learning Objective-C, and it was a pretty smooth transition. Many of the core concepts are the same, and all of your base C skills will translate across. I think that once you get a little ways into it, you'll find that direct Objective-C interaction with the Cocoa frameworks is really the way to go on the Mac and iPhone. There are many great resources for getting started, like the ones I list here.



        Admittedly, there are some cases where it's preferred to have a cross-platform C++ engine behind the scenes, and an Objective-C / Cocoa UI.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 23 '17 at 12:13









        Community

        11




        11










        answered May 15 '09 at 12:58









        Brad LarsonBrad Larson

        161k40364542




        161k40364542
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f867450%2fis-there-a-way-to-use-c-for-iphone-development%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Create new schema in PostgreSQL using DBeaver

            Deepest pit of an array with Javascript: test on Codility

            Costa Masnaga