[Prev][Next][Index][Thread]

Mac-d2c port of Mac application in gwydion dylan archive



There is a Dylan conversion of a basic Macintosh application in the
'contributions' directory which just puts up a window and writes text to it.
The original C code was taken from Apple's 1.0.2 Carbon SDK and as such the
code and the accompanying toolbox wrappers need the CarbonLib tools to be
present on your development system, along with Rob Myers Mac-d2c system.

The file is in pub/gd/contributions/HelloCarbonApp.sit.hqx in any of the
gwydion dylan archive mirrors (see http://www.gwydiondylan.org).

It is purely a 'proof of concept' and as such may not be very pretty code.

If you use Rob's hack to remove the command line dialog, I found that this
code works:

// in the main() function in inits.c
// comment out argc = ccommand(&argv)
// and add the following two lines
argc = 1;
argv[0] = "d2cApp";

Finally - its my first time posting anything I've written (so be gentle with
me!!!).

Regards
Gareth Baker
G.J.Baker@dl.ac.uk
garethbaker@cwcom.net






Follow-Ups: