ftp.nice.ch/peanuts/GeneralData/Documents/adobe/DPS.Purple.ImportInt.tar.gz#/NX_ImportInt

Document.h
[View Document.h] 
Document.m
[View Document.m] 
DrawingView.h
[View DrawingView.h] 
DrawingView.m
[View DrawingView.m] 
DrawingViewWraps.psw
 
GraphicImport.h
[View GraphicImport.h] 
GraphicImport.m
[View GraphicImport.m] 
IB.proj
 
Icon.tiff
 
Import.iconheader
 

Import.nib


 
ImportApp.h
[View ImportApp.h] 
ImportApp.m
[View ImportApp.m] 
Import_main.m
[View Import_main.m] 
Makefile
 
NXBitmapImageRepSub.h
[View NXBitmapImageRepSub.h] 
NXBitmapImageRepSub.m
[View NXBitmapImageRepSub.m] 
NXEPSImageRepSub.h
[View NXEPSImageRepSub.h] 
NXEPSImageRepSub.m
[View NXEPSImageRepSub.m] 
README
 
ResourcePanel.h
[View ResourcePanel.h] 
ResourcePanel.m
[View ResourcePanel.m] 

ResourcePanel.nib


 
SaveAsPanel.h
[View SaveAsPanel.h] 
SaveAsPanel.m
[View SaveAsPanel.m] 
cursorImport.tiff
 
epsf.h
[View epsf.h] 
epsferror.m
[View epsferror.m] 
epsfreader.m
[View epsfreader.m] 
epsfstruct.h
[View epsfstruct.h] 
epsfwraps.psw
 
epsfwriter.m
[View epsfwriter.m] 
resources.h
[View resources.h] 

README

README file for the ImportIntro application.

The ImportIntro application is intended to highlight a few areas concerning importing of
Encapsulated PostScript files (EPS) and TIFF images. This application includes parsing
routines for extracting bounding boxes, skipping included documents and checking for
included resources. It also images each file in an NXImage. This reduces the amount 
redrawing thats necessary during a scroll and redraw. In addition, each EPS file is imaged
within a subclass of the NXEPSImageRep. This class provides a separate DPS context
which protects the application context from any errors in an EPS file.

A second application, ImportAdvanced, shows more features such as rotating and 
zooming in and out.  Portions of the source code in this application are based on
source code from the Draw example application provided by NeXT.

Below lies an annotated list of the files used in the application. The
classes listed first form the majority of the application and are
the more important ones to note. The others fill support roles.

ImportApp			- A subclass of Application. Manages the global operations.
Document		- A subclass of Responder. Manages the operations for a document.
					Operations such as import, save, etc.
DrawingView		- A subclass of View. The view that manages the drawing for a
					document. Contains the list of graphics.
GraphicImport		- A subclass of Object. Each imported eps and tiff  file is managed
					through an instance of this object. Uses an NXImage to retain
					the image of the file offscreen and an NXEPSImageRepSub
					to swiche DPS contexts when imaging to protect the application's
					context.
NXEPSImageRepSub - A subclass of NXEPSImageRep. Adds the resource parsing and
					checking routines, the include file handling and the drawing
					with rotation.
NXBitmapImageRepSub - A subclass of NXBitmapImageRep. Adds the drawing
					with rotation.

SaveToPanel		- A subclass of SavePanel. 
ResourcePanel	- A subclass of Panel that displays the resources specified in the
					Epsf file but not found in the system.

epsfreader.m		- Routines for parsing Eps files.
epsfwriter.m		- Routines for writing Eps files.
epsferror.m		- Error codes and messages for parsing errors.


Topics of interest from ImportIntro:

Parsing an Eps file (epsfreader)
Resource checking and error flagging (epsfreader, GraphicImport, ResourcePanel)
Imaging an Eps file (epsfwriter, GraphicEpsf)
Imaging an Eps file into an NXImage (GraphicImport)
Dragging out the place for an Eps file (DrawingView, GraphicImport)
Saving As EPS/Illustrator (Document, DrawingView, GraphicImport, NXEPSImageRepSub)

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