2

Is there a framework or class that allows Cocoa and Objective-C to interface with a remote database, be it SQLite, MySQL, or another (though preferably SQLite)?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Pudgeball
  • 814
  • 8
  • 16

1 Answers1

1

You can download the source and compile this yourself but I have read that it is a pain and I think the project may be dead:

CocoaMySQL-src

However, connecting to a remote DB directly from an iPhone/iPad App is a very bad idea. Imagine someone with a jailbroken iPhone and a simple packet sniffer.... It would be incredibly easy for someone to compromise the security of your Database.

The best way to acomplish this is to wrap it in php via a web server on your remote Database server. You can then run a query on the DB with a simple http POST request and have the page return xml/json/whatever.

chown
  • 51,908
  • 16
  • 134
  • 170