12-06-2011, 10:37 PM #1
best GUI option for my simple needs?
- Member Since
- Dec 06, 2011
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.
12-07-2011, 02:06 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 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.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
12-07-2011, 02:21 PM #3
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++.
12-10-2011, 08:03 PM #4
- Member Since
- Dec 08, 2009
- The same as Sheldon Cooper - East Texas
- 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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By RadDave in forum Images, Graphic Design, and Digital PhotographyReplies: 6Last Post: 03-29-2013, 06:00 PM
By wrightm in forum iPhone Hardware and AccessoriesReplies: 11Last Post: 10-09-2012, 08:50 PM
By macuser1232 in forum OS X - Development and DarwinReplies: 1Last Post: 06-27-2012, 12:18 AM
By JamesTaylor in forum iOS and AppsReplies: 0Last Post: 05-15-2011, 08:58 AM