|Mar 13, 2012, 04:08 PM||#1|
Using C++, Objective-C and OpenGL
Well, in my quest for knowledge, I've seen several threads on various forums where there's a discussion of wrapping C++ to Cocoa to be able to create C++ GUI applications on Mac OS. Most of the answers pointed to using Cocoa for the GUI parts (possibly Objective-C++ with .mm files) and C++ for the rest, but not many examples of how to actually do something like that.
I did, however, find this old thread here that gave me inspiration:
... and got the ball rolling.
According to the Application Kit Framework Reference:
… AppKit.framework is really all you need to create a GUI application:
Here's my project so far:
Since most of my experience is with C/C++ (started learning C on a 68K Centris 650), Objective-C is a bit foreign to me, so I tried to keep the Objective-C code to a minimum. I reckon what I'm asking is if someone could look over the code in the above project and tell me if the Objective-C code is done correctly (specifically the memory management) and possibly offer any suggestions for improvements. It seems to work fine and running it with the debugger console doesn't report any issues.
|Mar 21, 2012, 12:03 PM||#4|
Also, since the OP specifically asked about memory management: There are memory tools (zombies and leaks) in Instruments that specifically address memory mgmt.
|Feb 14, 2013, 05:34 PM||#6|
I find this absolutely fascinating! Have you done anything new or having any new updates to share? Shoot, something like this should be placed into GIT and a team should be assembled to work on it. I absolutely love it!
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|OpenGL 4.0||MagnusVonMagnum||OS X Mavericks (10.9)||2||Jan 1, 2014 10:44 PM|
|OpenGL 3.2?!||Itzamna||OS X 10.8 Mountain Lion||1||Jun 10, 2013 06:37 PM|
|OS X OpenGL 4||foijord||Wasteland||7||Jul 19, 2012 07:09 PM|
|OpenGL Versioning?||Michael Goff||OS X||16||Jul 13, 2012 09:36 PM|
All times are GMT -5. The time now is 01:02 PM.