Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Mac > Re: Dialect in ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 127 of 149
Post > Topic >>

Re: Dialect in Xcode

by Jonas Maebe <Jonas.Maebe@[EMAIL PROTECTED] > Jun 15, 2005 at 10:21 AM

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
 




 3 Posts in Topic:
Dialect in Xcode
Scott Wyatt <tameri@[E  2005-06-14 20:06:30 
Re: Dialect in Xcode
Scott Wyatt <tameri@[E  2005-06-14 20:44:28 
Re: Dialect in Xcode
Jonas Maebe <Jonas.Mae  2005-06-15 10:21:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 22:31:48 CST 2008.