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):
http://developer.apple.com/techpubs/macosx/CoreTechnologies/graphics/Quartz2...
The NeXTStep interfaces (in the Objective C language) are referred to as Cocoa now (formerly called OpenStep, etc.; see the GNUStep project at www.gnustep.org for more details).
Quartz can be accessed natively from either one.
it will be inevitable that (somehow) GPC interfaces directly with C++
and Objective-C objects (and not only on Mac OS X).
Linking with C++ is a possibility, but the semantics of Objective-C objects are VASTLY different from those of C++ objects, and it would be very difficult to try to support them in a Pascal compiler without extending the language for that purpose (Objective-Pascal?)
Even Apple's "Objective C++", which allows C++ and Objective C code to be used together in the same source file, does not integrate C++ and Objective C objects: they are treated as independent entities in the same language (Apple provides this in order to allow use of legacy C++ libraries, such the KHTML component of KDE, from Objective C programs).
===== ======= Frank D. Engel, Jr.
Modify the equilibrium of the vertically-oriented particle decelerator to result in the reestablishment of its resistance to counterproductive atmospheric penetration.
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com