A Simple User Interface in Xcode 4

Aug 1, 2011 at 1:26am
Hi, I was wondering if any of you use Xcode and could help to create a user interface for one of my applications. I have recently created an application that takes the "a" the "b and the "c" parts of a quadratic equation and uses the quadratic formula to solve the equation. It doesn't particularly matter if it is for this application (it could even be for a hello world application) but I was wondering if you could implement Xcode's user interface builder in C++. They have the extension .xib or .nib but I don't really know how to attach functions to an object within the interface.

Please help me with this. I am rather new to C++ so it would be very nice if you sort of walked me through something like a hello world app but anyways. Thanks,

P.S. If this is in the wrong forum please tell me.
Aug 1, 2011 at 9:08am
closed account (1vRz3TCk)
Cocoa User interfaces (built with Xcode interface builder) as build with Objective-C.

You should be able to use C++ with a Carbon interface, check of the help in Xcode.
Aug 1, 2011 at 3:47pm
Could you please explain to me how to do the actual incorporating? Perhaps give an example. All the examples I have seen are in objective-c and I don't have much experience with C++ (about 2 weeks) much less objective-c.
Aug 1, 2011 at 6:05pm
closed account (1vRz3TCk)
check the help in Xcode. There is all sorts of help and sample code there.

I looks like the Cocoa framework is the one to use now for UI, that will be Objective-C
See: http://developer.apple.com/library/mac/navigation/#section=Resource%20Types&topic=Getting%20Started

If you want to stay with C++, you could try wxWidgets, I have not used it on a mac but...
see: http://www.wxwidgets.org/
Topic archived. No new replies allowed.