Re: OpenStep Storage and DPSContext replacements?
Re: OpenStep Storage and DPSContext replacements?
- Subject: Re: OpenStep Storage and DPSContext replacements?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 27 Dec 2001 20:36:10 -0800
On Thursday, December 27, 2001, at 07:08 PM, Roberto Abraham wrote:
>
I'd like to port the OpenStep PGPLOT drivers to Cocoa (PGPLOT is a
>
widely-used scientific graphics library). I've tried building
>
the OpenStep
>
driver using Project Builder on Mac OS X and it gets reasonably
>
far before
>
hitting two roadblocks, which I'm hoping somebody out there
>
might be able
>
to help me get past:
>
>
(1) The driver tries to import objc/Storage.h, which my trolling on the
>
internet suggests is a standard part of OpenStep. But my scan of the
>
Foundation and AppKit documentation suggests that this generic Storage
>
class does not exist for Cocoa. Am I missing a class somewhere,
>
or is an
>
equivalent class included instead? If not could someone suggest a good
>
substitute?
IIRC, Storage.h was the file that defined the List and
NXHashTable classes. Try commenting that line out, and see what
complaints you get.
>
>
(2) The drawing code uses raw postscript drawing commands
>
(references to
>
the DPSContext are seen). The way this works is explained in a source
>
comment:
>
>
// PGView receives 132 byte character arrays filled with
>
PostScript code.
>
// PGView saves these buffers in a Storage object. When the PGPLOT
>
// program executes a flushpg operation, this stored data is
>
then sent to the
>
// display.
What is the *source* of those character arrays filled with
PostScript code?
-jcr
"Scientology is evil; its techniques are evil; its practice is a
serious threat to the community, medically, morally, and
socially; and its adherents are sadly deluded and often mentally
ill... --Justice Anderson, Supreme Court of Victoria,
Australia