mac os x programming help needed

one of the features we had planned for mysql connector/odbc 5.1 is native setup libraries for the major platforms. we have the microsoft windows version going, and some code to get us going on linux/unix (using gtk instead of qt), but our gui team is too busy to get us started on a native mac os x version.

anyone want to pitch in by showing us how to get a basic dialog window to pop up based on a c library call? i think we will be able to customize it from there, but i am just unfamiliar enough with mac os x gui programming that i have a feeling it would take a long time for me to get that going.

» gui, odbc, work, mysql, mac os x, code
« connector/odbc 3.51.22blossom expands »


Have you considered simply writing a cross-platform UI? Java has very nice native widgets on OS X.

» toby (link) » november 15, 2007 3:12pm

we already have a cross-platform setup library, using the qt toolkit. there is very little that the setup gui actually needs to do, so there is very little to be gained from using a cross-platform library other than annoying extra dependencies. and calling out to java would be more than a little painful.

» jim (link) » november 15, 2007 3:50pm

Hi there,

What is the timeline on this? I think I could provide you with a sample project doing what you need on this weekend. I would set something up with XCode. I would use Objective-C for the GUI part as it goes naturally with the environment.

Yours, Björn

» Björn Michaelsen » november 15, 2007 5:11pm

Have you considered wxWidgets?
C++ GUI library with a port for MS Windows, GTK, X11, MacOS, et al.
You could conceivably have a single code base. An example would be Berkeley's BOINC project where the front end is available across multiple platforms.

» Scott Furry » november 16, 2007 4:48am

Hi there again,
I setup a simple project starting a Cocoa-Window from a plain C call. However, I think you would be served better with a Setup-UI written in Cocoa and Objective-C using libodbc5 as a plain-C backend. Starting Cocoa from plain-C is, while possible, not really intended use and could lead to lots of interesting behavior ...

Feel free to contact me via email if you have any questions.

Yours, Björn

» Björn Michaelsen » november 18, 2007 6:48am

this entry is closed to new comments.