Solved

Objective-C vs C/C++

Posted on 2009-07-03
4
516 Views
Last Modified: 2013-11-25
What libraries / APIs are available in Objective-C

We have a wealth of existing code assets in standard C++.

Do the following exist in Objective-C

1) C++ STL
2) C stdio
3) C++ iostreams

Thanks,

mjc
0
Comment
Question by:mrjoltcola
  • 2
4 Comments
 
LVL 5

Assisted Solution

by:AGoodKeenMan
AGoodKeenMan earned 200 total points
ID: 24774524
Using the STL in Objective-C requires that you switch the file to use Objective-C++ by changing the file ending to .mm. After that you can import the various STL libraries normally: #import <vector>.
However I am not 100% on whether this applies to iPhone development or not, you might do better to signup to the developer program and search the developer forum, you are more likely to hook the right person.
0
 
LVL 24

Accepted Solution

by:
fridom earned 300 total points
ID: 24791507
AGoodKeenMan has some points. But AFAIKT it probably will just hold for Apple computer. So I'd like to answer you questions more directly
1) no (it's C++)
2) yes (Objective C is a superset of C)
3) no (it's C++)

And yes there exists such a beast as Objective-C++....

Regards
Friedrich

0
 
LVL 40

Author Comment

by:mrjoltcola
ID: 24794056
Thanks to both. I am wondering what I will have available to me when I try to port an app to iPHone. I have existing code that uses STL.

I am waiting for an actual Mac Pro, so I cannot test yet.
0
 
LVL 40

Author Closing Comment

by:mrjoltcola
ID: 31599636
Did not have the iphone specific info I was looking for, but I appreciate the answers.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Are you looking to clear some space on your phone for the latest iOS 8 update? Did you switch to Spotify so you no longer need to keep music native on your phone? Run out of space for taking photos while in the middle of vacation? Sometimes the quic…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now