Is there a way to use C++ for iPhone development?
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
add a comment |
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
exact dupe stackoverflow.com/questions/270455/…
– TheSoftwareJedi
May 16 '09 at 12:04
add a comment |
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
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
c++ iphone objective-c wrapper
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited May 23 '17 at 12:13
Community♦
11
11
answered May 15 '09 at 12:58
Brad Larson♦Brad Larson
161k40364542
161k40364542
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
exact dupe stackoverflow.com/questions/270455/…
– TheSoftwareJedi
May 16 '09 at 12:04