Mark
Mark

Reputation: 41175

iPhone Quartz 2d development using C++?

Could I write c++ code that interacts with the iPhone Quartz 2D framework, or can I only using objective-c?

Thanks

Upvotes: 0

Views: 930

Answers (2)

Dominic Cooney
Dominic Cooney

Reputation: 6545

Yes. Quartz is a C framework. You can use C++ code that uses Quartz.

You will need some Objective-C to launch your application and get a graphics context for a view to draw into.

Upvotes: 1

Carl Norum
Carl Norum

Reputation: 225202

I think Quartz 2D is a C framework isn't it? As long as you only call the C APIs, you can use C++ by itself. If you want access to any Objective-C frameworks, you will need to look into Objective-C++.

Upvotes: 0

Related Questions