Is there something like Objective C ++?

I am reading an iPhone programming post and I noticed that talking about Objective-C ++, the code shown in the message looks mostly like Objective-C, but there are also a few snippets in C ++. Is it possible to program Cocoa in C ++?

+3
source share
5 answers

In addition to the other comments, I would add that Objective-C ++ is not exactly the same as “program Cocoa from C ++” because there is no C ++ bridge for Cocoa.

In Objective-C ++, you program the Cocoa API completely with Objective-C objects / syntax. The Cocoa API remains unchanged, so you need to share data with it the same way (using Objective-C strings, Objective-C arrays and Objective-C objects).

The difference with Objective-C ++ compared to regular Objective-C is that you can also use C ++ objects (containing Objective-C objects contained in Objective-C objects or only along the sides of Objective-C).

+15
source

Yes. Basically, Objective-C is a collection of Smalltalk objects similar to C. Objective C ++ is the result of applying the same extensions to C ++. This gives you a language with two different object models.

Apple xcode Objective-C Objective-C ++.

+9
+5

Apple, , -: WebScript WO4.

, Objective-C ++.

+1

, .

0

All Articles