Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TheReef

macrumors 68000
Original poster
Sep 30, 2007
1,888
167
NSW, Australia.
Hi all,
I am trying to get C++ talking to a user interface.

Is there something similar to what I'd do with Cocoa:
1) Make application controller class in Interface Builder.
2) Add actions and outlets.
3) Write class files back to project.


I looked here and it seams I need to use the Carbon Events Manager, I'm totally lost there.

I have selected Carbon C++ application from Xcode but opening the .xib file in Interface Builder I can't seam to create a class, and from there add the actions and outlets.

Any suggestions would be great!
Thanks :)
 

TheReef

macrumors 68000
Original poster
Sep 30, 2007
1,888
167
NSW, Australia.
Thanks, I did some research into Objective-C++, as I'll still need to be using Objective-C I've decided may as well get into learning it.

Everything about it looks so confusing compared to C++ :(
The whole square bracket notation and way classes are defined and used looks very different.
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
Thanks, I did some research into Objective-C++, as I'll still need to be using Objective-C I've decided may as well get into learning it.

Everything about it looks so confusing compared to C++ :(
The whole square bracket notation and way classes are defined and used looks very different.

If you managed to pick up C++, Objective-C won't be too bad. There are some behavioral differences, and the frameworks are totally different. But the rest? That is just syntax. Syntax is the easiest hurdle (in my experience) to overcome.

What will really cause the problems is getting out of the mindset of how you build classes in C++, and how you handle memory. You just don't do it the same way in Objective-C, and that is not a bad thing. If you let the rules and common practices of the language and frameworks sink in, you will do just fine I think.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.