ftp.nice.ch/pub/next/developer/objc/fromnext/MiniExamples.91.9.s.tar.gz#/MiniExamples/PerformanceTuning/VisibleView-03

Appender.h
[View Appender.h] 
Appender.m
[View Appender.m] 
Drawgrid.h
[View Drawgrid.h] 
Drawgrid.psw
 
IB.proj
 

Info.nib


 
Logo.eps
[View Logo.eps as PDF] 
Makefile
 
Makefile.preamble
 
README
 
SomePS.h
[View SomePS.h] 
SomePS.psw
 
StringManager.h
[View StringManager.h] 
StringManager.m
[View StringManager.m] 

Strings.nib


 
SubViewFramer.h
[View SubViewFramer.h] 
SubViewFramer.m
[View SubViewFramer.m] 
VisibleOne.h
[View VisibleOne.h] 
VisibleOne.m
[View VisibleOne.m] 
VisibleOne.strings
 
VisibleView.iconheader
 

VisibleView.nib


 
VisibleViewOld.tiff
 
VisibleView_main.m
[View VisibleView_main.m] 

README

{\rtf0\ansi{\fonttbl\f1\fmodern Courier;}
\paperw11760
\paperh8360
\margl20
\margr120
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f1\b0\i0\ul0\fs24 README\
\
Visible View\
\
This program is used as a teaching aid in the NeXT Developer Camp.  Its purpose is to demonstrate the features of the View class, a class that provides access to PostScript, knows how to draw itself on the screen and handles events.\
\
To use the program, bring up any of the Tool panels and watch the results of your manipulations of the View's various components.\
\

\li1440 · The Frame panelŠthe location of the View in its superview's coordinates space.\
· The Coordinates panelŠits own coordinates space, the area in which you draw.\
· The Appearance panelŠadd a grid to the View, showing its own coordinate space, to composite in an image as the background (compositing is a very fast way to paint existing bitmaps into a View), make the superview transparent.\
· The Statistics panelŠa readout of the values of several important instance variables of the View.\
\

\li0 The Status panel gives on-going information about the events the View is receiving as well as other actions the View might be taking in response to an event.\
\
You can mouse down in the View to test its response to events.  It will beep on mouse down and display the location of the mouse in the view's coordinates on mouse up, even when you drag the mouse outside the View's frame.\
\

\b NOTES ON DIFFERENCES BETWEEN VISIBLEVIEW-02 AND VISIBLEVIEW-03
\b0 \
In VisibleView-02, when running MallocDebug, you'll notice a leak everytime a string is written out to the status window.\
This is being caused by the call to NXCopyStringBuffer(), which allocates a copy of the string. However, this string never gets deallocated.\
\
In the VisibleView-03, this method was replaced with NXUniqueStringNoCopy(), which resolves the leak problem. See the ToolsNotes Performance CheckList for more details.\
\
Left as additional exercises:\
Use UserPaths to improve Postscript drawing performance.
}

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