BinaryFormat.nib
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.