Xcode creating UI

Hello,

I would like to ask if it is possible to create/add user interface to my application (not an iPhone/iPad/iPod app) using Xcode. If it is possible i would be graceful if someone add a tutorial or give me some tips .
Thanks

OS X El Capitan (10.11.1)

Posted on Nov 6, 2015 8:11 AM

Reply
3 replies

Nov 7, 2015 1:28 PM in response to BigBadSonic

Apple's languages of choice are Objective-C (older) and Swift (newer). These are what Xcode is primarily set up to use, although the runtime allows C, Objective-C, C++ and Swift code to run within a single program. You can use C++ for your application, but to link against the various Cocoa frameworks (which are in Objective-C), Objective-C or Swift wrappers will need to be used for your user interface and C++ objects. A typical application layout would use Objective-C or Swift for the user interface, calling into C/C++ libraries as needed.


For your example, normally you would use the Interface Editor to create the text fields and buttons and connect them to outlet properties and action methods defined in your code. There are quite a few tutorials and example applications using Objective-C and Swift, not so much for using C++ in Xcode.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode creating UI

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