Re: MySQL and Cocoa
Re: MySQL and Cocoa
- Subject: Re: MySQL and Cocoa
- From: Chris Hanson <email@hidden>
- Date: Sat, 23 Feb 2002 18:18:51 -0600
At 7:22 PM -0300 2/23/02, Eduardo Duprat wrote:
How can I access a mySQL database using cocoa frameworks ?
I couldn't find anything about that.
Where's the driver ?
How to make a connection ?
Eduardo:
There currently isn't any database access in the Cocoa frameworks.
There actually isn't any standard database access layer in Mac OS X
at all. There used to be a technology called the Enterprise Objects
Framework that was the best data access layer on the planet. Now
unfortunately it's only available from Java and only as part of
WebObjects; Apple discontinued the Objective-C version and actually
never shipped it for use with Cocoa and Mac OS X.
For database access now you'll have to use your database's C access
library if one is available. I'm pretty sure there is one for MySQL.
Or you might be able to write some Java code that uses JDBC, and then
call that code from your Cocoa application via the Java bridge. (If
you've written your Cocoa application in Java, you don't even have to
do that.)
I can't recommend strongly enough that anyone and everyone who even
remotely might need database functionality -- whether for an
enterprise application or a consumer desktop application -- file a
bug with Apple at <
http://bugreport.apple.com/> requesting they add a
standard database access layer to Cocoa. It's critical to a great
number of us, and the only way Apple will get the message is if it
comes in through the feedback channels they pay attention to.
-- Chris
-- who wishes Apple would juts GET IT already and bring
back Objective-C EOF as part of Cocoa
-- who can't understand how anyone at Apple could ever
justify discontinuing Cocoa EOF to begin with
-- What were they THINKING?
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.