Re: How to develop databases
Re: How to develop databases
- Subject: Re: How to develop databases
- From: Scott Ribe <email@hidden>
- Date: Thu, 24 Mar 2005 10:38:16 -0700
> I´ve been developing databases using 4D for many years.
> I cant find the track how to do this using Xcode.
>
> Can somebody point me in the right direction?
> May be tutorial which works?
Well, there is no direct equivalent to what you're used to with 4D. There's
Cocoa which handles UI tasks very nicely, and there's a world of databases
to choose from, and there's the task of connecting the UI to the database
for which you either write your own code or choose one of a handful of
available free base libraries.
In other words, it's a whole lot of work to get started. But I certainly
don't want to discourage you, after all I abandoned 4D a couple of years ago
because I couldn't stand to continue asking my users to play "upgrade
roulette" year after year. (Paying thousands of dollars for an upgrade, in
that hope that long-standing bugs will be fixed without being replaced by
worse bugs.)
For databases, you have a so many choices...
For single-user applications the free SQLite is popular, and since that
Apple is incorporating it into Tiger it seems safe to assume that its
support for OS X will be top-notch. For multi-user client/server
applications my favorite is PostgreSQL, nice advanced SQL implementation,
liberal license, free. Of course MySQL is very popular, but I see no reason
to choose a database with fewer features and a more restrictive license.
In the commercial realm there are Sybase, Oracle, FrontBase, OpenBase,
PrimeBase, Cache, and at least several others whose names I don't remember
right now.
As for connecting the UI to the database, I have just more vague
suggestions. Study some available technologies, EOF of course shows a way to
do this with Objective-C but who knows what the future is, Hibernate comes
to mind as a highly-regarded example in Java (there's far more examples of
this kind of thing available in Java than any other language), or read a
book such as "Data Access Patterns" or "Patterns of Enterprise Application
Architecture".
I am sure that others will jump in and point you to some Cocoa libraries. I
am not familiar with these because I chose to design my own persistence
layer, in C++ for various complicated reasons. Also look at Cocoa Bindings
and join ADC Select so that you can have access to "Core Data" in the Tiger
pre-releases.
Good luck. You're looking at a lot of work, but in the end freedom and
control over quality are far more than worth the effort.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden