Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode C++ GUI

Does anyone know where and how I can build the GUI for my C++ program for Xcode (like you can do in Visual C++), or does Xcode only support GUI editors for Cocoa and Carbon applications?

Mac OS X (10.4.10)

Posted on Nov 10, 2007 8:54 PM

Reply
3 replies

Nov 11, 2007 12:55 AM in response to imacintosher

Xcode... Well, Interface Builder more precisely, because Xcode doesn't create any interface, Interface Builder only supports Cocoa and Carbon applications and that's for a good reason...
It's simply because the way of managing interfaces in Mac OS X is way different than in Windows or Linux.
Visual C++ writes code when you build an interface and you simply use that code in your application. Interface Builder actually creates files containing an archive of the interface element, each element is encoded i that archive with their links, when you open your application, the code will load a the NIB file it needs and link every tools in it with the proper elements.

So, you can build interfaces other than Carbon and Cocoa, simply because they are the only API that use NIB file.

Nov 11, 2007 2:47 PM in response to imacintosher

Using Interface Builder you can'T build other interfaces than Carbon or Cocoa, because Interface Build builds NIB files that contains the encoded objects used by the interface.

Other kind of interfaces, like the one you can build using Visual C++ or NetBeans are just helpers that write codes for you directly using your directives. Whereas NIB files contain the objects that are loaded and created when they are asked by the application itself.

Xcode C++ GUI

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.