In article <UPOdndKBJ6-lBjLfRVn-2A@[EMAIL PROTECTED]
>,
Scott Wyatt <tameri@[EMAIL PROTECTED]
> wrote:
> What should I know about the dialect of Pascal in Xcode 2.x? I have
> played with simple, generic Pascal to be safe, but would like to start
> trying some routines from Delphi (non-graphical). Do I need to do
> anything special?
Add {$mode delphi} at the top of your units and programs, and you should
be able to use pretty much all constructs Delphi 7 sup****ts. Another
(and probably easier) possibility is to add -Mdelphi to the command line
options.
> Now, when there are units for SQLite (Core Data), that will be a day to
> celebrate.
There is an interface unit to sqlite (called "sqlite" :). I do not think
it is do***ented however. The source is available at
http://svn.freepascal.org/svn/fpc/branches/fixes_2_0/packages/base/sqlite
/
> Most of my Delphi work was database front-ends. I'm still
> trying to get my head around Carbon after working in Cocoa with all its
> nice visual controls. Carbon nibs seem to require more effort, lacking
> the cool NSView objects.
Yes, Cocoa integration will require Objective Pascal sup****t (which
Metrowerks defined, see http://pascal-central.com/cwpascal.html),
but
that's not trivial to add.
> Anyway, just want to know how to specify the dialect and compiler
> options. Thanks!
In XCode, get info on the target, go to "build rules" and change the
-Mmacpas to -Mdelphi (twice, once for development and once for
deployment style). You may also want to remove -Co (overflow checking),
because there are few nasty bugs with that in 2.0.0 for PowerPC.
Jonas


|