All of Apple's PInterfaces have been ported to GNU Pascal ! They can be downloaded from <www.microbizz.nl/gpc.html>.
Special thanks to Peter N. Lewis, who did the bulk of the work, and to Frank Heckenbach for providing the needed compiler options.
---
Frank D. Engel, Jr. wrote:
Unfortunately, Quartz is NeXT Step technology, based on Objective-C, not C. To use it, you would have to write "flattened C" interfaces in C
Actually, Apple provides a "flattened" C interface to Quartz as part of OS X, for use with Carbon (which is in C, not Objective C):
Quartz is part of the ported PInterfaces.
---
Frank Heckenbach wrote:
Peter N Lewis wrote:
One alternative is to change from unit "uses" to include files (which the Mac interfaces support anyway for reasons I've never understood), and just make a single really really big unit including all the interfaces. However that would be quite large and I don't know how happy GPC will be with a single unit with 300,000 lines in it, or how slow it will be for users to use it once the .gpi has been created.
300000 lines sounds very much. It's more than on my Linux system the total of all headers of the system, X11 various libraries etc.
This doesn't mean that GPC will necessarily fail on such a large unit (I haven't tried this, except for pathetic cases). If there are no O(n^2) cases anymore, it might work, but it might take a lot of memory ...
Included in the ported PInterfaces is GPCMacOS.pas, a unit that combines all other units into one big file. By leaving out unsupported technologies, we got it down from 300000 lines to 160000 lines. It compiles in just a few seconds. Amazing !
Regards,
Adriaan van Os