ftp.nice.ch/peanuts/GeneralData/Documents/adobe/DPS.Purple.HitDetect.tar.gz#/NX_HitDetect

Bezier.h
[View Bezier.h] 
Bezier.m
[View Bezier.m] 
DetectApp.h
[View DetectApp.h] 
DetectApp.m
[View DetectApp.m] 
DocView.h
[View DocView.h] 
DocView.m
[View DocView.m] 
DrawingView.h
[View DrawingView.h] 
DrawingView.m
[View DrawingView.m] 
DrawingViewWraps.psw
 
HitDetection.iconheader
 

HitDetection.nib


 
HitDetection_main.m
[View HitDetection_main.m] 
HitPointView.h
[View HitPointView.h] 
HitPointView.m
[View HitPointView.m] 
IB.proj
 
Icon.tiff
 
Makefile
 
README
 
ScrollingView.h
[View ScrollingView.h] 
ScrollingView.m
[View ScrollingView.m] 
zoom.tiff
 

README

README file for the HitDetection application.

The HitDetection application is intended to highlight patterns in a Display PostScript
environment.


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

DetectApp		- A subclass of Application. Creates the window with the
					ScrollView, DocView and DrawingView. Provides the
					id's of the items in the Methods Panel (matrices, buttons, etc).
ScrollingView		- A subclass of ScrollView. This view syncronizes the DrawingView 
					with the offscreen buffers. 
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. The view that manages the drawing for a
					document. Contains a single Bezier curver (represented
					in the form of a Bezier object). A grid can be drawn in the
					view and it can be scaled in or out in conjuction with the
					DocView.
Bezier			- A subclass of Object that contains the points locations for the
					Bezier and performs the hit detection operations.


DrawingViewWraps.psw			- PS Routines for turning patterns into Type 3 fonts.


Topics of interest from the HitDetection application:

Drawing a grid (DrawingView)
Changing and moving a graphic object (DrawingView, Bezier)
Using offscreen windows to buffer drawing (ScrollingView, DrawingView)
Hit detection (DrawingView, Bezier)
Scaling the view (DocView, DrawingView)

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