ftp.nice.ch/pub/next/developer/objc/dps/AdobeExamples.N.bs.tar.gz#/AdobeExamples/NX_Binary

BinaryFormat
 
BinaryFormat.iconheader
 

BinaryFormat.nib


 
BinaryFormat_main.m
[View BinaryFormat_main.m] 
ColorNurseAbbr.eps
[View ColorNurseAbbr.eps as PDF] 
ColorNurseAsc.eps
[View ColorNurseAsc.eps as PDF] 
ColorNurseBos.eps
[View ColorNurseBos.eps as PDF] 
ColorNurseBot.eps
[View ColorNurseBot.eps as PDF] 
DocView.h
[View DocView.h] 
DocView.m
[View DocView.m] 
DrawingView.h
[View DrawingView.h] 
DrawingView.m
[View DrawingView.m] 
DrawingViewWraps.c
[View DrawingViewWraps.c] 
DrawingViewWraps.h
[View DrawingViewWraps.h] 
DrawingViewWraps.psw
 
EpsfParser.h
[View EpsfParser.h] 
EpsfParser.m
[View EpsfParser.m] 
FormatApp.h
[View FormatApp.h] 
FormatApp.m
[View FormatApp.m] 
Graphic.h
[View Graphic.h] 
Graphic.m
[View Graphic.m] 
IB.proj
 
Icon.tiff
 
Makefile
 
Makefile.preamble
 
README
 
distillery.h
[View distillery.h] 
ierror.h
[View ierror.h] 
ierror.m
[View ierror.m] 
iinterpreter.c
[View iinterpreter.c] 
iinterpreter.h
[View iinterpreter.h] 
iinterpreterhooks.h
[View iinterpreterhooks.h] 
iinterpreterhooks.m
[View iinterpreterhooks.m] 
iparser.c
[View iparser.c] 
iparser.h
[View iparser.h] 
iparserhooks.h
[View iparserhooks.h] 
iparserhooks.m
[View iparserhooks.m] 
lex.l
 
lex.yy.c
[View lex.yy.c] 
zoom.tiff
 

README

README file for the BinaryEncoding application.

The BinaryEncoding application is not really intended as a model for other
applications. Much like the StrokeAdjust application, this application is provides
material for comparison. In this case the material is files in different formats. Two of
the files are in the binary formats, binary token and binary object sequence. The
other two are in ASCII. One provides the complete operator names and the other
provides abbreviated operator names.

This application is taken largely from the Scolling application. It uses the same
parsing routines to read the distilled PostScript files as well as the same 
structures for holding the paths. The functionality has been changed so that 
instead of exploring drawing issues it writes out the different PostScript language
encodings. These EPS files can then be opened in the Preview application. PostScript
timing operators are included in the file. The times are printed to either the Console or
the shell depended on where the application is launched. 


Below lies an annotated list of the files used in the application. 

FormatApp		- A subclass of Application. Creates the window with the
					ScrollView, DocView and DrawingView. 
DocView			- A subclass of View. Serves as the DocView for the ScrollView.
					Makes the DrawingView a subview making it easier to
					size and scale the DrawingView. The Drawing View is
					resized whenever the user zooms into or out of the
					document.
DrawingView		- A subclass of View that writes out the different encoding outputs.
Graphic			- A sublcass of Object. Holds the path and graphic state parameters
					for a single component of the drawing.

DrawingViewWraps.psw	- Wraps for outputting the abbreviated ASCII format.

EpsfParser.m		These files parse an EPS file first verifying it as EPS and then as
lex.l				a distilled file. The parsing acts as a rudimentry interpreter placing
ierror.c			items on the stack and the popping them. A new graphic object is
iinterpreter.c		created whenever a stroke or fill occurs when parsing. When this 
iintrepreterhooks.m	happens, the current graphics state and the current path in this
iparser.c			simple interpreter are installed in the new graphic object.
iparserhooks.m

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.