Re: Newbie question about Database
Re: Newbie question about Database
- Subject: Re: Newbie question about Database
- From: Andrew Farmer <email@hidden>
- Date: Tue, 20 May 2008 19:26:02 -0700
On 20 May 08, at 18:29, Mathieu Spénard-Gingras wrote:
I am learning Cocoa and would like to develop an application that
can connect to a database, such as MySQL. However, I cannot find
any tutorial, nor drivers in order to connect to a MySQL database,
in such a way JDBC works with Java. How can one do so?
I was also wondering if storing data to a database is a good design
pattern for Cocoa, since Apple provides something I haven't had time
to look at yet: Core Data. I am simply developing a small project
that will run locally on my machine, so I can get more exposure to
developing with Cocoa. I am used to Java, where I would connect to
a DB via JDBC, but if Core Data is providing a stable and fast way
to store data, I would definitely have a look at it. From a
performance point of view, is Core Data worth it? What should I
consider in my design to either use a standard database vs. Core Data?
If your application needs to connect to a remote database, or if the
database needs to be shared with a server of some sort, use ODBC.
There are libraries out there that'll do it for you. (I wouldn't
recommend using mysql_client directly - it's very low-level, and takes
a lot of code to get stuff done.)
If your application needs to stand alone, use Core Data. Be warned
that it isn't an simple technology, though: you'll want to have a firm
understanding of Cocoa before you start working with Core Data._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden