Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JavaWizKid

macrumors 6502a
Original poster
Sep 18, 2008
572
1
I've read this forum and it suggests that it is a bad idea to connect to an online database directly from the app. How do some apps like AroundMe and Showtimes get their data? I'm in need to access an online database which will constantly change so I cannot store it locally. Any ideas?
 
It is a bad idea to connect directly to a database. Instead, as the thread explains, its much better to talk to remote services using HTTP/AJAX/RMI/etc, which in turn are backed by a database.
 
You would typically use NSURLConnection to transfer requests to your server and to get results back. You could have a script on the server, say in php, that processes the request and returns the result.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.