PDA

View Full Version : Database




jaikob
Nov 1, 2009, 10:09 AM
I have a remote web application using mysql. On windows I made a desktop app to generate a random key to access the apps file portal. This is achieved by creating a random string and inserting it remotely into my database.

Well, I'm trying to do the same thing for mac, and found no clear solution to connect to mysql. So, I thought about attaching a SQLite DB to my web application, and checking both mysql and sqlite, sqlite only being used with the mac app.

How do I connect ObjC to my remote SQLite DB? or if anyone has a solution to connect mysql, that would be great!

Thanks for the help.

PS: If neither are possible, how would I go about displaying a webview in my app?

I know enough objC to get around, but am not a pro at it by any means.



Cromulent
Nov 1, 2009, 11:26 PM
If you want to connect to a remote MySQL database just use the included C developer library and your problem is solved (included in the MySQL binary distribution for Mac OS X that is).