best GUI option for my simple needs?

Joined
Dec 6, 2011
Messages
1
Reaction score
0
Points
1
I'm brand new to C++. I need to build an app on OSX Lion with xcode that has a very simple GUI. I'd like a fullscreen black window (no menu bar, scrolling, or resizing - just a black screen). In this window I'd like to have minimalist clickable buttons that are single color rectangles with text inside, in a custom layout. That's it. I'd prefer no other pre-designed GUI artifacts of any kind on screen.

As far as CPU usage, I'd like to find the most lightweight way of accomplishing this. Cocoa, wxWidgets? Is there a better option out there? Thanks for your help.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Cocoa, Objective-C, and the Apple documentation which includes building full screen apps.

You can use C++ to build GUI apps as I recall, but it's a hassle as the system is all about using Objective-C the non-C++ frame works.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
wxWidgets will give you easy cross platform support if that's a concern for you. You could also look into Qt which is also a fairly comprehensive (and cross platform) toolkit.

Admittedly, the bit of programming I do is not C/C++/Obj-C so I have no idea how these toolkits perform with C++.
 
Joined
Dec 8, 2009
Messages
453
Reaction score
10
Points
18
Location
The same as Sheldon Cooper - East Texas
Your Mac's Specs
iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
Xcode will do what you want. I'm not saying that it will be easy, but I regularly use Xcode as the GUI front end to Perl. If it does that, then it will certainly talk to C++. Actually, the calling mechanism of the Task object will probably allow you to call any foreign language, except maybe for Basic.

Your problem is that you will have to learn enough Objective-C to make the widgets/controls accept and post the data from your C++.

As to where you are going to get a tutorial or book on the subject of C++ under Xcode, I have no idea.

As vansmith said, wxWidgets or Qt will probably have a far lower learning hill to climb. My only problem with non-Apple supplied suites, is that they usually stop working after every major OSX upgrade, and you have to hunt down the fixes.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top