I am looking for a way to use C++ to make a window using Xcode. the reason being I have looked for ways to do this, but they all seem to be using visual basic, and seeing as I have a mac, i can not run this. If it just to difficult to make a window on Xcode, is there another program I can use, because I am hoping to later turn this into a user interface for a program... ~Regards Mark Calhoun
Asked
Active
Viewed 2,439 times
1
-
2Use Objective C to create the window, or switch to Qt. – Dietrich Epp Nov 17 '14 at 03:34
-
possible duplicate of [How do I build a GUI in C++?](http://stackoverflow.com/questions/1186017/how-do-i-build-a-gui-in-c) – AliciaBytes Nov 17 '14 at 03:35
-
Also: http://en.wikipedia.org/wiki/List_of_widget_toolkits#Based_on_C.2B.2B_.28including_bindings_to_other_languages.29 – AliciaBytes Nov 17 '14 at 03:38
-
If you're looking for something simple and small, then use GLUT and GLUI. You need to use OpenGL for Graphics. GLUT is for callback functions (mouse, keyboard, etc). GLUI is for GUI ( buttons, menu, etc). – CroCo Nov 17 '14 at 04:13
-
I highly recommend against using GLUT and GLUI if you're coming from Visual Basic or are new to programming. OpenGL is very obtuse and not nearly as useful as the built-in OS tools for building normal apps. (If you're writing a 3D game, or a CAD program, or something like that, then by all means, use OpenGL, though.) Plus, GLUT is deprecated and not really supported anymore. – user1118321 Nov 17 '14 at 05:39
-
Use wxWidget to show a window... – wshcdr Nov 17 '14 at 07:02
-
[There's a blog post here](http://glampert.com/2012/11-29/osx-window-without-xcode-and-ib/) that does this – bobobobo Sep 25 '21 at 17:45
2 Answers
0
Well, you may want to look into a framework that Herb Sutter actually mentioned at Going Native, back in 2012: http://www.openframeworks.cc
I've actually experimented with this framework in Xcode 5 and it works as advertised

AhiyaHiya
- 755
- 3
- 13
0
You should probably start with Apple's "Start Developing Mac Apps Today" tutorial. In particular the Your First Mac App page shows how to create a simple app with a window and some controls, and how to set that up in Xcode.

user1118321
- 25,567
- 4
- 55
- 86